Documentation ¶
Overview ¶
Package str @Title @Description @Author @Update
Index ¶
- func Capitalize(s string) string
- func Compare(a, b string) int
- func Contains(s, substr string) bool
- func ContainsAny(s, chars string) bool
- func Count(s, substr string) int
- func Endswith(s, suffix string) bool
- func Fields(s string) []string
- func Find(s, substr string) int
- func FindLast(s, substr string) int
- func Index(s, substr string) int
- func IndexLast(s, substr string) int
- func IsAlpha(s string) bool
- func IsAlphaNum(s string) bool
- func IsDigit(s string) bool
- func IsLower(s string) bool
- func IsSpace(s string) bool
- func IsUpper(s string) bool
- func Join(sep string, elems ...string) string
- func Len(s string) int
- func Lower(s string) string
- func Max(s string) string
- func Min(s string) string
- func Replace(s, old, new string, max int) string
- func ReplaceAll(s, old, new string) string
- func Split(s, sep string) []string
- func SplitLines(s string, keepEnds bool) []string
- func Startswith(s, prefix string) bool
- func Strip(s string, cutset string) string
- func StripPrefix(s string, cutset string) string
- func StripSuffix(s string, cutset string) string
- func Title(s string) string
- func Upper(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAny ¶
func IsAlphaNum ¶
func ReplaceAll ¶
func SplitLines ¶
func StripPrefix ¶
func StripSuffix ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.