Documentation ¶
Index ¶
- func GTBytes2String(BytesData []byte) string
- func GTCheckMobile(phoneNumber string) bool
- func GTGBKString2UTF8String(src string) string
- func GTRandomString(outLenth int) string
- func GTRecodingString(src string, srcCode string, toCode string) string
- func GTString2Bytes(strData string) []byte
- func GTStringSliceContain(slice []string, s string) bool
- func GTStruct2JsonString(value interface{}) (jsonString string)
- func GTUTF8String2GBKString(src string) string
- func GTValidHostnamePort(s string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GTBytes2String ¶ added in v1.6.9
GTBytes2String byte转string
func GTGBKString2UTF8String ¶ added in v1.6.9
GTGBKString2UTF8String GBK转UTF-8
func GTRecodingString ¶ added in v1.6.9
func GTString2Bytes ¶ added in v1.6.9
GTString2Bytes string转bytes
func GTStringSliceContain ¶ added in v1.4.4
GTStringSliceContain 判断是否包含元素
func GTStruct2JsonString ¶ added in v1.6.9
func GTStruct2JsonString(value interface{}) (jsonString string)
GTStruct2JsonString struct转json
func GTUTF8String2GBKString ¶ added in v1.6.9
GTUTF8String2GBKString UTF-8转GBK
func GTValidHostnamePort ¶ added in v1.4.4
GTValidHostnamePort 检测IP+端口字符串是否正确
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.