myjson

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: BSD-3-Clause Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldValue

type FieldValue struct {
	Key   string
	Value any
}

func ToOrderMap

func ToOrderMap(jsonStr string) (list []FieldValue, err error)

type JSON

type JSON []byte

func (JSON) Equals

func (j JSON) Equals(j1 JSON) bool

func (JSON) IsNull

func (j JSON) IsNull() bool

func (JSON) MarshalJSON

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

func (*JSON) Scan

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

func (*JSON) UnmarshalJSON

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

func (JSON) Value

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

type OrderArray

type OrderArray []any

type OrderMap

type OrderMap struct {
	// contains filtered or unexported fields
}

func (*OrderMap) Fields

func (self *OrderMap) Fields() []FieldValue

func (*OrderMap) MarshalJSON

func (self *OrderMap) MarshalJSON() ([]byte, error)

implementation of interface Marshaler

func (*OrderMap) UnmarshalJSON

func (self *OrderMap) UnmarshalJSON(b []byte) error

implementation of interface Unmarshaler

Jump to

Keyboard shortcuts

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