strings

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCaseToUnderscore

func CamelCaseToUnderscore(str string) string

func Contains

func Contains(list []string, strToSearch string) bool

Contains returns true if a list contains a string.

func ContainsEqualFold

func ContainsEqualFold(slice []string, s string) bool

ContainsEqualFold returns true if a given slice 'slice' contains string 's' under unicode case-folding.

func DecodeBase64

func DecodeBase64(i string) ([]byte, error)

func Diff

func Diff(base, exclude []string) (result []string)

Creates an slice of slice values not included in the other given slice.

func Filter

func Filter(list []string, strToFilter string) (newList []string)

Filter filters a list for a string.

func FindString

func FindString(array []string, str string) int

func FrequencySort

func FrequencySort(list []string) []string

func Include

func Include(base, include []string) (result []string)

Creates an slice of slice values included in the other given slice.

func Reverse

func Reverse(s string) string

func StringIn

func StringIn(str string, array []string) bool

func UnderscoreToCamelCase

func UnderscoreToCamelCase(str string) string

func Unique

func Unique(ss []string) (result []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL