Documentation ¶
Index ¶
- func AppendUniq(slice []string, i string) []string
- func CaseInsensitiveContains(s, substr string) bool
- func CsvToSlice(s string) []string
- func IsInCSVList(s string, term string) (found bool)
- func RefToDigit(v string) (ret int64, ok bool)
- func RemoveDuplicatesUnordered(elements []string) []string
- func TimeStampToUnix(s string) (int64, error)
- func UniqStringSlice(cslist string) (result []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendUniq ¶
AppendUniq append string to slice if it its not there yet
func CaseInsensitiveContains ¶
CaseInsensitiveContains perform case-insensitive search of substr in s
func CsvToSlice ¶
CsvToSlice convert s to []string; where s is in the form of string, string, string
func IsInCSVList ¶
IsInCSVList find term in s, where s is in the form of "string, string,string ..."
func RefToDigit ¶
RefToDigit convert references in rules like :1 :2 :3 to 1 2 3
func RemoveDuplicatesUnordered ¶ added in v0.1.12
RemoveDuplicatesUnordered remove duplicates from elements
func TimeStampToUnix ¶
TimeStampToUnix converts s in RFC3339 format to epoch
func UniqStringSlice ¶ added in v0.1.12
UniqStringSlice removes duplicate from a comma separated list into result slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.