Documentation
¶
Index ¶
- 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 Decompress(compressed []byte) ([]byte, error)
- func GetArchBit() int
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayMapFormatCase ¶ added in v0.1.36
func BytesToStr ¶ added in v0.1.34
func Decompress ¶ added in v0.1.34
func GetArchBit ¶ added in v0.1.34
func GetArchBit() int
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.