Versions in this module Expand all Collapse all v1 v1.1.9 Oct 28, 2022 v1.1.8 Oct 28, 2022 Changes in this version + const MaxSequence + const MaxWorkId + func ByteIndexOf(source []byte, targetByte []byte) int + func BytesToInt(b []byte, start int, length int) int + func BytesToString(val []byte) string + func CopyOfRange(src []byte, srcOffset int, size int) ([]byte, error) + func DeSerialization(source []byte, dst interface{}) error + func Decryption(source []byte, iv []byte, key []byte) ([]byte, error) + func DecryptionForString(source string, iv string, key string) (string, error) + func Encryption(data []byte, iv []byte, key []byte) ([]byte, error) + func EncryptionToString(data string, iv string, key string) (string, error) + func Get(reqUrl string, param interface{}) (*http.Response, error) + func IntToBytes(n int, length int) []byte + func Match(source string, reg string) bool + func ParseStruct(jsonString string, result interface{}) error + func RequestBody(reqUrl string, method string, header map[string]string, reqBody io.Reader) (*http.Response, error) + func Serialization(data interface{}) ([]byte, error) + func StrToBytes(val string) []byte + func SubBytes(source []byte, startIndex int, endIndex int) ([]byte, error) + func ToJSONString(stc interface{}) (string, error) + func ToString(value interface{}) string + type SnowFlake struct + func New(workerId uint32) (*SnowFlake, error) + func (sf *SnowFlake) Generate() (uint64, error)