Documentation ¶
Index ¶
- func Contains(slice []string, item string) bool
- func ConvertID(intId int64) string
- func JSONEncode(v interface{}) string
- func JSONEncodePretty(v interface{}) string
- func Md5(source string) string
- func ParseFileSize(sizeString string) (float64, error)
- func Rand(n int) string
- func RegexpCompile(pattern string) (*regexp.Regexp, error)
- func Reverse(s string) string
- func VersionCompare(version1 string, version2 string) int8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONEncodePretty ¶
func JSONEncodePretty(v interface{}) string
JSONEncodePretty JSON Encode Pretty
func RegexpCompile ¶
RegexpCompile 生成可重用的正则
func VersionCompare ¶
VersionCompare 对比版本号,返回-1,0,1三个值
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.