json

package
v0.0.0-...-5bcacdd Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: GPL-3.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

func MarshalIndent

func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)

func MarshalToString

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

func NewDecoder

func NewDecoder(reader io.Reader) *jsoniter.Decoder

func NewEncoder

func NewEncoder(writer io.Writer) *jsoniter.Encoder

func Unmarshal

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

func UnmarshalFromString

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

Types

type Number

type Number eJson.Number

func (Number) Float64

func (n Number) Float64() (float64, error)

Float64 returns the number as a float64.

func (Number) Int64

func (n Number) Int64() (int64, error)

Int64 returns the number as an int64.

func (Number) String

func (n Number) String() string

String returns the literal text of the number.

Jump to

Keyboard shortcuts

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