json

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodingJSON

type EncodingJSON struct {
}

EncodingJSON is the json encoding type

func NewEncodingJSON

func NewEncodingJSON() *EncodingJSON

NewEncodingJSON creates a new EncodingJSON instance

func (*EncodingJSON) Marshal

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

Marshal converts the given value to a json byte slice

func (*EncodingJSON) Unmarshal

func (e *EncodingJSON) Unmarshal(b []byte, v interface{}) error

Unmarshal converts the given json byte slice to the given value

func (*EncodingJSON) UnmarshalToMap

func (e *EncodingJSON) UnmarshalToMap(b []byte) (map[string]interface{}, error)

UnmarshalToMap converts the json string to a map

type EncodingJSONIter

type EncodingJSONIter struct {
}

EncodingJSONIter is a json encoding using json-iter

func NewJEncodingJSONIter

func NewJEncodingJSONIter() *EncodingJSONIter

NewJEncodingJSONIter returns a new EncodingJSONIter

func (EncodingJSONIter) Marshal

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

Marshal returns the EncodingJSON encoding of v

func (EncodingJSONIter) Unmarshal

func (e EncodingJSONIter) Unmarshal(b []byte, v interface{}) error

Unmarshal parses the EncodingJSON-encoded data and stores the result

func (*EncodingJSONIter) UnmarshalToMap

func (e *EncodingJSONIter) UnmarshalToMap(b []byte) (map[string]interface{}, error)

UnmarshalToMap converts the json string to a map

Jump to

Keyboard shortcuts

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