null

package
v0.0.0-...-1678b8c Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericType

type GenericType any

type Type

type Type struct {
	Value GenericType
	Set   bool // if json object has this field
}

Type is a nullable type.

func NewType

func NewType(t GenericType) Type

NewType creates a new GenericType.

func (Type) Default

func (t Type) Default(v GenericType) GenericType

Default return default value its value is Null or not Set.

func (Type) HasValue

func (t Type) HasValue() bool

func (Type) Interface

func (t Type) Interface() any

func (Type) Ptr

func (t Type) Ptr() *GenericType

func (*Type) UnmarshalJSON

func (t *Type) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

Jump to

Keyboard shortcuts

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