Documentation
¶
Index ¶
- Constants
- func Contains(ss []string, str string) bool
- func Diff(base, exclude []string) (result []string)
- func Filter(ss []string, str string) (dt []string)
- func Find(ss []string, str string) int
- func Match(pattern, s string, flags int) bool
- func Remove(ss []string, s string) (result []string)
- func Reverse(s string) string
- func SubStr(s string, start, length int) string
- func ToBytes(str string) []byte
- func ToFloat64(s string) (float64, error)
- func ToInt(s string) (int, error)
- func ToInt64(str string) (int64, error)
- func ToStr(bytes []byte) string
- func Unique(ss []string) (result []string)
Constants ¶
View Source
const ( FNM_NOESCAPE = (1 << iota) FNM_PATHNAME FNM_PERIOD FNM_LEADING_DIR FNM_CASEFOLD FNM_IGNORECASE = FNM_CASEFOLD FNM_FILE_NAME = FNM_PATHNAME )
Variables ¶
This section is empty.
Functions ¶
func Match ¶
Matches the pattern against the string, with the given flags, and returns true if the match is successful. This function should match fnmatch.3 as closely as possible.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.