bejson

package
v0.0.0-...-fe5c0f3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalString

func UnmarshalString(jsonString string, output interface{}) error

UnmarshalString parse json string to output struct

Types

type JSON

type JSON []byte

func Marshal

func Marshal(input interface{}) (*JSON, error)

Marshal parse struct to bejson.JSON

func (JSON) Equals

func (j JSON) Equals(j1 JSON) bool

Equals check if value of json is equal to j1

func (JSON) IsNull

func (j JSON) IsNull() bool

IsNull check if json is null

func (JSON) MarshalJSON

func (j JSON) MarshalJSON() ([]byte, error)

MarshalJSON return json in []byte format

func (*JSON) Scan

func (j *JSON) Scan(value interface{}) error

Scan parse value to json format

func (JSON) String

func (j JSON) String() string

String return json in string format

func (*JSON) Unmarshal

func (j *JSON) Unmarshal(output interface{}) error

Unmarshal parse json into output struct

func (*JSON) UnmarshalJSON

func (j *JSON) UnmarshalJSON(data []byte) error

UnmarshalJSON parse byte data into json

func (JSON) Value

func (j JSON) Value() (driver.Value, error)

Value return json in value format

Jump to

Keyboard shortcuts

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