Documentation ¶
Index ¶
- func Calculator(exp string) (string, error)
- func FilterEmptyChar(str string) string
- func GenSha1(input string) string
- func GenStrBySeed(input, seed string) string
- func GetDirNameFromSnowflakeID(snowflakeID int64) string
- func IsAlphaNum(str string) bool
- func Length(str string) int
- func Md5(str string) string
- func NanoTimestampStr() string
- func PadCnSpaceChar(label string, spaces int) string
- func ProtoMessageToJson(msg proto.Message) (string, error)
- func RandomId() string
- func RegexpMatch(text string, pattern string) bool
- func StrToInt64(intStr string) (int64, error)
- func StringToInt64(str string) (int64, error)
- func StringToNumber(str string) uint32
- func UUIDNoDash() string
- func UniqueStrings(input []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterEmptyChar ¶
func GenStrBySeed ¶
GenStrBySeed 根据给定的字符串和种子生成一个可重现的新字符串(不建议用到密码)
func IsAlphaNum ¶
func NanoTimestampStr ¶
func NanoTimestampStr() string
func PadCnSpaceChar ¶
PadCnSpaceChar 使用中文空格为字符串填充
func RegexpMatch ¶
func StrToInt64 ¶
func StringToInt64 ¶ added in v1.8.5
StringToInt64 字符串数字转换成int64
func UUIDNoDash ¶
func UUIDNoDash() string
func UniqueStrings ¶
UniqueStrings 返回一个新的切片,其中包含原切片中的唯一字符串
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.