Documentation ¶
Index ¶
- func AppendArg(b []byte, v interface{}) []byte
- func Bytes(s string) []byte
- func CodeToIDBase34(idByte []byte) (uint64, error)
- func CodeToIDReverse(code string) (int64, error)
- func Contains(target interface{}, obj interface{}) bool
- func ContainsString(slice []string, item string) bool
- func GenCodeBase34(id uint64) []byte
- func GenCodeReverse(id int64) string
- func Join(elems []string, sep string) string
- func LowercaseFirst(str string) string
- func NewLine() string
- func PadLeft(s string, pad string, plength int) string
- func RandomString(length int) string
- func Reverse(x int64) int64
- func String(b []byte) string
- func Sub(str string, start int, length int) string
- func UppercaseFirst(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodeToIDBase34 ¶
CodeToIDBase34 -- 将code逆向转换成原始id
func CodeToIDReverse ¶ added in v0.4.0
CodeToIDReverse -- 将code逆向转换成原始id
func GenCodeReverse ¶ added in v0.4.0
GenCodeReverse 将id转换成n位长度的code
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.