Documentation
¶
Index ¶
- func Capitalize(str string) string
- func GenRandToken(keySize int) (string, error)
- func GenToken(userID int64, keySize int) (string, error)
- func IsCapitalize(s string) bool
- func IsNumber(str string) bool
- func Rand(size int) (string, error)
- func Remove(s, old string) string
- func RemoveEmpties(s string) string
- func ReplaceAllIgnoreCase(str, old, new string) string
- func SplitToChunks(s string, chunkSize int) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Capitalize ¶
Capitalize make first letter to upper Source https://www.cnblogs.com/Detector/p/9686443.html
func GenRandToken ¶ added in v2.3.0
GenToken rand id + rand key + jwt
func ReplaceAllIgnoreCase ¶ added in v2.2.0
ReplaceAllIgnoreCase replace all ignore case
func SplitToChunks ¶
SplitToChunks Split large string in n-size chunks
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.