Documentation ¶
Overview ¶
Package zstring provides String related operations
Index ¶
- Constants
- func Buffer() (b strings.Builder)
- func Bytes2String(b []byte) string
- func IsLcfirst(str string) bool
- func IsPattern(str string) bool
- func IsUcfirst(str string) bool
- func Lcfirst(str string) string
- func Len(str string) int
- func Match(str, pattern string) bool
- func Pad(raw string, length int, padStr string, padType int) string
- func Rand(n int, ostr ...string) string
- func RandomInt(num int) int
- func String2Bytes(s string) []byte
- func Substr(str string, start int, length ...int) string
- func Ucfirst(str string) string
Constants ¶
View Source
const ( // PadRight Right padding character PadRight int = iota // PadLeft Left padding character PadLeft // PadSides Two-sided padding characters,If the two sides are not equal, the right side takes precedence. PadSides )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.