Documentation ¶
Index ¶
- func BytesToInt16(bs []byte) (_r int16)
- func BytesToInt32(bs []byte) (_r int32)
- func BytesToInt64(bs []byte) (_r int64)
- func BytesToIntArray(bs []byte) (data []int64)
- func CRC32(bs []byte) uint32
- func CRC64(bs []byte) uint64
- func CRC8(bs []byte) (_r byte)
- func CheckGzipType(bs []byte) (err error)
- func Concat(ss ...string) string
- func Decode[T any](buf []byte) (_r *T, err error)
- func Encode(e any) (by []byte, err error)
- func Gzip(bs []byte) (buf bytes.Buffer, err error)
- func Hash32(key []byte) uint32
- func Hash64(key []byte) uint64
- func Int16ToBytes(n int16) []byte
- func Int32ToBytes(n int32) []byte
- func Int64ToBytes(n int64) []byte
- func IntArrayToBytes(n []int64) []byte
- func IsFileExist(path string) (_r bool)
- func JsonDecode[T any](bs []byte) (_r T, err error)
- func JsonEncode(v any) (bs []byte)
- func MD5(bs []byte) []byte
- func MatchString(pattern string, s string) bool
- func Md5Str(s string) string
- func RandInt64Strict(i int64) (int64, error)
- func RandUint(i uint) uint
- func ReadFile(path string) (bs []byte, err error)
- func SHA1(bs []byte) []byte
- func Sha1Str(s string) string
- func SnappyDecode(bs []byte) (_r []byte)
- func SnappyEncode(bs []byte) (_r []byte)
- func StrToTimeFormat(s string) (t time.Time, err error)
- func TDecode[T thrift.TStruct](bs []byte, ts T) (_r T, err error)
- func TEncode(ts thrift.TStruct) (_r []byte)
- func UUID32() uint32
- func UUID64() (rid int64)
- func UnGzip(bs []byte) (_bb bytes.Buffer, err error)
- func UnZlib(bs []byte) (_r []byte, err error)
- func Zlib(bs []byte) (_r []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToInt16 ¶
func BytesToInt32 ¶
func BytesToInt64 ¶
func BytesToIntArray ¶
func CheckGzipType ¶
func Int16ToBytes ¶
func Int32ToBytes ¶
func Int64ToBytes ¶
func IntArrayToBytes ¶
func IsFileExist ¶
func JsonDecode ¶
func JsonEncode ¶
func MatchString ¶
func RandInt64Strict ¶ added in v0.1.6
func SnappyDecode ¶
func SnappyEncode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.