Documentation
¶
Index ¶
- Variables
- func Get(data []byte, path ...any) jsoniter.Any
- func Marshal(v any) ([]byte, error)
- func MarshalIndent(v any, prefix, indent string) ([]byte, error)
- func MarshalToString(v any) (string, error)
- func NewDecoder(reader io.Reader) *jsoniter.Decoder
- func NewEncoder(writer io.Writer) *jsoniter.Encoder
- func Unmarshal(data []byte, v any) error
- func UnmarshalFromString(data string, v any) error
- func Valid(data []byte) bool
- func ValidFromString(s string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrStructToJson = errors.New("parse struct to json string error") ErrStringToStruct = errors.New("parse json string to struct error") )
Functions ¶
func MarshalToString ¶
func NewDecoder ¶
func NewEncoder ¶
func UnmarshalFromString ¶
func ValidFromString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.