Documentation
¶
Index ¶
- func Base64EncodeHTTPImage(data []byte) string
- func ConvertGB2312ToUTF8(input []byte) (string, error)
- func GetChineseCharacter(s string) string
- func InnerTextWithBr(n *html.Node) string
- func JSONUnmarshalFromFile(filePath string, v any) error
- func Md5Hash(text string, bit int) string
- func PrintStruct(s interface{}) string
- func RemoveDuplicate(data interface{}) interface{}
- func SafeAtoi(s string) int
- func SaveData(filePath string, data []byte) error
- func StructJSONEncodeBase64(data interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64EncodeHTTPImage ¶
func ConvertGB2312ToUTF8 ¶
func GetChineseCharacter ¶
GetChineseCharacter returns the Chinese characters and number in the string
func InnerTextWithBr ¶
func JSONUnmarshalFromFile ¶
func Md5Hash ¶
Md5Hash generates MD5 hash and returns either 16 or 32 bit based on the bit parameter.
func RemoveDuplicate ¶
func RemoveDuplicate(data interface{}) interface{}
func StructJSONEncodeBase64 ¶
func StructJSONEncodeBase64(data interface{}) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.