nullable

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullFloat64 added in v0.1.6

type NullFloat64 struct {
	sql.NullFloat64
}

func NewNullFloat64 added in v0.1.6

func NewNullFloat64(v *float64) NullFloat64

func NewNullFloat64V added in v0.1.7

func NewNullFloat64V(v float64) NullFloat64

func (*NullFloat64) UnmarshalJSON added in v0.1.6

func (v *NullFloat64) UnmarshalJSON(data []byte) error

type NullInt32

type NullInt32 struct {
	sql.NullInt32
}

func NewNullInt32

func NewNullInt32(v *int32) NullInt32

func NewNullInt32V added in v0.1.4

func NewNullInt32V(v int32) NullInt32

func (NullInt32) MarshalJSON

func (v NullInt32) MarshalJSON() ([]byte, error)

func (*NullInt32) UnmarshalJSON

func (v *NullInt32) UnmarshalJSON(data []byte) error

type NullInt64

type NullInt64 struct {
	sql.NullInt64
}

func NewNullInt64

func NewNullInt64(v *int64) NullInt64

func NewNullInt64V added in v0.1.4

func NewNullInt64V(v int64) NullInt64

func (NullInt64) MarshalJSON

func (v NullInt64) MarshalJSON() ([]byte, error)

func (*NullInt64) UnmarshalJSON

func (v *NullInt64) UnmarshalJSON(data []byte) error

type NullString

type NullString struct {
	sql.NullString
}

func NewNullString

func NewNullString(v *string) NullString

func NewNullStringV added in v0.1.4

func NewNullStringV(v string) NullString

func (NullString) MarshalJSON

func (v NullString) MarshalJSON() ([]byte, error)

func (*NullString) UnmarshalJSON

func (v *NullString) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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