gtbox_string

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GTBytes2String

func GTBytes2String(BytesData []byte) string

GTBytes2String byte转string

func GTCheckMobile

func GTCheckMobile(phoneNumber string) bool

GTCheckMobile 判断是否为手机号

func GTGBKString2UTF8String

func GTGBKString2UTF8String(src string) string

GTGBKString2UTF8String GBK转UTF-8

func GTRandomString

func GTRandomString(outLenth int) string

GTRandomString 获取随机字符串

func GTRecodingString

func GTRecodingString(src string, srcCode string, toCode string) string

func GTString2Bytes

func GTString2Bytes(strData string) []byte

GTString2Bytes string转bytes

func GTStringSliceContain

func GTStringSliceContain(slice []string, s string) bool

GTStringSliceContain 判断是否包含元素

func GTStruct2JsonString

func GTStruct2JsonString(value interface{}) (jsonString string)

GTStruct2JsonString struct转json

func GTUTF8String2GBKString

func GTUTF8String2GBKString(src string) string

GTUTF8String2GBKString UTF-8转GBK

func GTValidHostnamePort

func GTValidHostnamePort(s string) bool

GTValidHostnamePort 检测IP+端口字符串是否正确

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL