Documentation ¶
Index ¶
- func AsString(src interface{}) string
- func ByteToBinStr(b byte) string
- func BytesBCC(bytes []byte) byte
- func BytesToBinStr(bs []byte) string
- func BytesToBinStrWithSplit(bs []byte, split string) string
- func BytesToHex(data []byte) string
- func DecToBin(n uint64) string
- func DecToHex(n uint64) string
- func GBKSuffixSpace(chinese string, byteSize int) (hex string)
- func GBKSuffixZero(gbkStr string, byteSize int) string
- func HexBCC(hexStr string) string
- func HexPrefixZero(hex string, byteSize int) string
- func HexReverse(hex string) string
- func HexSuffixZero(hex string, byteSize int) string
- func HexToBin(h string) string
- func HexToBytes(hexStr string) []byte
- func HexToDec(h string) uint64
- func ReverseString(s string) string
- func StrPrefixSpace(str string, length int) string
- func StrPrefixZero(str string, length int) string
- func StrSuffixF(str string, length int) string
- func StrSuffixSpace(str string, length int) string
- func StrSuffixZero(str string, length int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToBinStrWithSplit ¶
BytesToBinStrWithSplit 将byte数组转8个bit一组的字符串并且带分割符
func BytesToHex ¶
BytesToHex 字节数组转hex []byte{0x55, 0xAA} 被转成 55AA
func GBKSuffixSpace ¶
GBKSuffixSpace 编码按字节右补空格
func GBKSuffixZero ¶
GBKSuffixZero GBK 编码按字节右补0
func HexPrefixZero ¶
func HexToBytes ¶
HexToBytes 将hex 字符串转成 byte数组 AABBCC 转成字节数组 []byte{0xAA, 0xBB, 0xCC}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.