jsonx

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsJsonSyntaxError

func IsJsonSyntaxError(err error) bool

func JsonSyntaxError

func JsonSyntaxError(err *json.SyntaxError) error

func Marshal

func Marshal(v interface{}) ([]byte, error)

Marshal marshals v into json bytes.

func MarshalToString

func MarshalToString(v interface{}) (string, error)

MarshalToString marshals v into a string.

func Unmarshal

func Unmarshal(data []byte, v interface{}) error

Unmarshal unmarshals data bytes into v.

func UnmarshalFromReader

func UnmarshalFromReader(reader io.Reader, v interface{}) error

UnmarshalFromReader unmarshals v from reader.

func UnmarshalFromString

func UnmarshalFromString(str string, v interface{}) error

UnmarshalFromString unmarshals v from str.

func WrapJsonError

func WrapJsonError(err error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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