bzjson

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode[T any](data []byte) (T, error)

func DecodeAny

func DecodeAny(data []byte, v any) error

func DecodeMap

func DecodeMap[K comparable, V any](data []byte) (map[K]V, error)

func Encode

func Encode(v any) ([]byte, error)

Encode 序列化json成byte

func EncodeString

func EncodeString(v any) (string, error)

EncodeString 序列化json成string

func Get

func Get[K comparable, V any](data []byte, key K) (V, error)

func IsJson

func IsJson(b []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL