Documentation
¶
Index ¶
- func AesCbcDecrypt(input, aesKey []byte) ([]byte, error)
- func AesCbcDecryptWithIv(data, key, iv []byte) ([]byte, error)
- func AesCbcEncrypt(input, aesKey []byte) ([]byte, error)
- func AesCbcEncryptWithIv(data, key, iv []byte) ([]byte, error)
- func AesGcmDecrypt(data []byte, aesKey []byte) ([]byte, error)
- func AesGcmDecryptWithIv(data []byte, aesKey []byte, iv []byte) ([]byte, error)
- func AesGcmEncrypt(data, aesKey []byte) ([]byte, error)
- func AesGcmEncryptWithIv(data, aesKey, iv []byte) ([]byte, error)
- func ArrayMapFormatCase(data []map[string]interface{}, toSnake bool) []map[string]interface{}
- func BufReadUShort(buf io.Reader) (uint16, error)
- func BufReadUint(buf io.Reader) (uint, error)
- func BufReadUint32(buf io.Reader) (uint32, error)
- func BufReadUint64(buf io.Reader) (uint64, error)
- func BufWriteUShort(buf io.Writer, data uint16) error
- func BufWriteUint(buf io.Writer, data uint) error
- func BufWriteUint32(buf io.Writer, data uint32) error
- func BufWriteUint64(buf io.Writer, data uint64) error
- func BytesToStr(data []byte) string
- func Compress(data []byte) ([]byte, error)
- func Convertor[S any](source interface{}) (*S, error)
- func CreateEcdhKeyPair(curve ecdh.Curve) (*ecdh.PrivateKey, []byte, error)
- func Decompress(compressed []byte) ([]byte, error)
- func FileMD5(file *os.File, chunkSize int64, chunkFn func(chunkBytes []byte)) ([]byte, error)
- func GetArchBit() int
- func GetEcdhPubKey(pubKeyBytes []byte, curve ecdh.Curve) (*ecdh.PublicKey, error)
- func GetEcdhSharedKey(myPriKey *ecdh.PrivateKey, otherPubKey *ecdh.PublicKey) ([]byte, error)
- func LowerCamelConvertor[S any](source interface{}) (*S, error)
- func MapFormatCase(data map[string]interface{}, toSnake bool) map[string]interface{}
- func MapGet[T any](data map[string]interface{}, key string) T
- func Marshal(object interface{}) ([]byte, error)
- func SnakeConvertor[S any](source interface{}) (*S, error)
- func ToLowerCamelJson(snakeJson []byte) ([]byte, error)
- func ToSnakeJson(lowerCamelJson []byte) ([]byte, error)
- func Unmarshal[S any](jsonData []byte) (*S, error)
- func UnmarshalUseNumber[S any](jsonData []byte) (*S, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCbcDecrypt ¶ added in v0.1.38
func AesCbcDecryptWithIv ¶ added in v0.1.38
func AesCbcEncrypt ¶ added in v0.1.38
func AesCbcEncryptWithIv ¶ added in v0.1.38
func AesGcmDecrypt ¶ added in v0.1.38
func AesGcmDecryptWithIv ¶ added in v0.1.38
func AesGcmEncrypt ¶ added in v0.1.38
func AesGcmEncryptWithIv ¶ added in v0.1.38
func ArrayMapFormatCase ¶ added in v0.1.36
func BytesToStr ¶ added in v0.1.34
func CreateEcdhKeyPair ¶ added in v0.1.38
func Decompress ¶ added in v0.1.34
func GetArchBit ¶ added in v0.1.34
func GetArchBit() int
func GetEcdhPubKey ¶ added in v0.1.38
func GetEcdhSharedKey ¶ added in v0.1.38
func LowerCamelConvertor ¶ added in v0.1.33
func MapFormatCase ¶ added in v0.1.36
func SnakeConvertor ¶ added in v0.1.21
SnakeConvertor 默认转字段key为蛇形
func ToLowerCamelJson ¶ added in v0.1.2
func ToSnakeJson ¶ added in v0.1.20
func UnmarshalUseNumber ¶ added in v0.2.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.