json

package
v0.0.0-...-4845449 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertByJson

func ConvertByJson(input, target interface{}) error

func Decode

func Decode(data []byte, m interface{}) error

func DecodeString

func DecodeString(data string, m interface{}) error

func Encode

func Encode(v interface{}, pretty bool) ([]byte, error)

func EncodeString

func EncodeString(v interface{}, pretty bool) (string, error)

func MustDecode

func MustDecode(data []byte, m interface{})

func MustDecodeString

func MustDecodeString(data string, m interface{})

func MustEncode

func MustEncode(v interface{}, pretty bool) []byte

func MustEncodeString

func MustEncodeString(v interface{}, pretty bool) string

Types

type RawMessage

type RawMessage = json.RawMessage

Jump to

Keyboard shortcuts

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