nulls

package
v0.0.0-...-424a8ae Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	sql.NullBool
}

func NewBool

func NewBool(n interface{}) Bool

func (Bool) MarshalJSON

func (n Bool) MarshalJSON() ([]byte, error)

func (*Bool) UnmarshalJSON

func (n *Bool) UnmarshalJSON(data []byte) error

type Float64

type Float64 struct {
	sql.NullFloat64
}

func NewFloat64

func NewFloat64(n interface{}) Float64

func (*Float64) MarshalJSON

func (n *Float64) MarshalJSON() ([]byte, error)

func (*Float64) UnmarshalJSON

func (n *Float64) UnmarshalJSON(data []byte) error

type Int64

type Int64 struct {
	sql.NullInt64
}

func NewInt64

func NewInt64(n interface{}) Int64

func (*Int64) MarshalJSON

func (n *Int64) MarshalJSON() ([]byte, error)

func (*Int64) UnmarshalJSON

func (n *Int64) UnmarshalJSON(data []byte) error

type String

type String struct {
	sql.NullString
}

func NewString

func NewString(n interface{}) String

func (String) MarshalJSON

func (n String) MarshalJSON() ([]byte, error)

func (*String) UnmarshalJSON

func (n *String) UnmarshalJSON(data []byte) error

type Time

type Time struct {
	Time  time.Time
	Valid bool
}

func NewTime

func NewTime(n interface{}) Time

func (Time) MarshalJSON

func (n Time) MarshalJSON() ([]byte, error)

func (*Time) Scan

func (n *Time) Scan(value interface{}) error

func (*Time) UnmarshalJSON

func (n *Time) UnmarshalJSON(data []byte) error

func (Time) Value

func (n Time) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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