Documentation ¶
Index ¶
- Constants
- func CamelCase(str string) string
- func Count(str string, pattern string) int
- func Delete(str string, pattern string) string
- func FastRandom(n int) (string, error)
- func JoinAny(i []interface{}, sep string, codec xcodec.Codec) (string, error)
- func JoinInt(i []int, sep string) string
- func JoinInt16(i []int16, sep string) string
- func JoinInt32(i []int32, sep string) string
- func JoinInt64(i []int64, sep string) string
- func JoinInt8(i []int8, sep string) string
- func JoinStringer(i []fmt.Stringer, sep string) string
- func JoinUint(i []uint, sep string) string
- func JoinUint16(i []uint16, sep string) string
- func JoinUint32(i []uint32, sep string) string
- func JoinUint64(i []uint64, sep string) string
- func JoinUint8(i []uint8, sep string) string
- func KebabCase(str string) string
- func Random(strSet string, length int) (string, error)
- func Reverse(str string) string
- func SnakeCase(str string) string
- func SplitInt(str string, sep string) ([]int, error)
- func SplitInt16(str string, sep string) ([]int16, error)
- func SplitInt32(str string, sep string) ([]int32, error)
- func SplitInt64(str string, sep string) ([]int64, error)
- func SplitInt8(str string, sep string) ([]int8, error)
- func SplitUint(str string, sep string) ([]uint, error)
- func SplitUint16(str string, sep string) ([]uint16, error)
- func SplitUint32(str string, sep string) ([]uint32, error)
- func SplitUint64(str string, sep string) ([]uint64, error)
- func SplitUint8(str string, sep string) ([]uint8, error)
- func UnsafeBytesToString(data []byte) string
- func UnsafeStringToBytes(str string) []byte
Constants ¶
View Source
const RandomSet = "0123456789ABCDEF"
Variables ¶
This section is empty.
Functions ¶
func FastRandom ¶
FastRandom creates new string with one read, this version is fast than the random version.
func JoinUint16 ¶
func JoinUint32 ¶
func JoinUint64 ¶
func Random ¶
Random creates new string based on strSet. It uses crypto/rand as the random number generator. error is the one returned by rand.Int
func UnsafeBytesToString ¶
func UnsafeStringToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.