types

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrJSONInvalid = errors.New("json_invalid")
)

Functions

This section is empty.

Types

type JSON

type JSON struct {
	JSON  json.RawMessage
	Valid bool
}

func JSONFrom added in v0.1.2

func JSONFrom(j []byte) JSON

func (JSON) MarshalJSON added in v0.1.2

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

func (JSON) MarshalYAML

func (j JSON) MarshalYAML() (interface{}, error)

func (*JSON) Scan added in v0.1.2

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

func (*JSON) Unmarshal added in v0.1.2

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

func (*JSON) UnmarshalJSON added in v0.1.2

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

func (*JSON) UnmarshalYAML

func (j *JSON) UnmarshalYAML(unmarshal func(interface{}) error) error

func (JSON) Value added in v0.1.2

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

type UUID

type UUID struct {
	UUID  uuid.UUID
	Valid bool
}

func UUIDFrom added in v0.1.2

func UUIDFrom(id uuid.UUID) UUID

func (UUID) MarshalJSON added in v0.1.2

func (u UUID) MarshalJSON() ([]byte, error)

func (*UUID) Scan added in v0.1.2

func (u *UUID) Scan(src interface{}) error

func (*UUID) UnmarshalJSON added in v0.1.2

func (u *UUID) UnmarshalJSON(text []byte) error

func (*UUID) UnmarshalText added in v0.1.2

func (u *UUID) UnmarshalText(text []byte) error

func (*UUID) UnmarshalYAML added in v0.1.2

func (u *UUID) UnmarshalYAML(unmarshal func(interface{}) error) error

func (UUID) Value added in v0.1.2

func (u UUID) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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