datatype

package
v0.0.0-...-95762b6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSON

type JSON []byte

func (*JSON) Array

func (j *JSON) Array() ([]interface{}, error)

Array returns the json as an array

func (*JSON) Equals

func (j *JSON) Equals(json JSON) bool

Equals returns true if the json is equal to the given json

func (*JSON) Field

func (j *JSON) Field(key string) (interface{}, error)

Field returns the value of a field in the json

func (*JSON) IsNull

func (j *JSON) IsNull() bool

IsNull returns true if the json is null

func (*JSON) Map

func (j *JSON) Map() (map[interface{}]interface{}, error)

Map returns the json as a map

func (*JSON) MarshalJSON

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

MarshalJSON implements the json.Marshal interface

func (*JSON) Scan

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

Scan implements the sql.Scanner interface

func (*JSON) String

func (j *JSON) String() (string, error)

String returns the json as a string

func (*JSON) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshal interface

func (*JSON) Value

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

Value implements the driver.Valuer interface

Jump to

Keyboard shortcuts

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