Documentation ¶
Index ¶
- func IsEmpty(str string, defval string) (result string)
- func IsNum(s string) bool
- func MD5Encode(s string) string
- func StrContains(s []string, e string) bool
- func StrStr(haystack, needle string, beforeNeedle bool) (result string, exist bool)
- func Trim(str string, characterMask ...string) string
- func TrimLeft(str string, characterMask ...string) string
- func TrimRight(str string, characterMask ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StrStr ¶
*
- StrStr 实现php中的strstr,needle是否是haystack的子串,为空则返回空字符串和false
- 如果beforeNeedle是true, result返回子串位置之前,否则返回子串位置之后
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.