nulls

package
v0.0.0-...-a1c7d3d Latest Latest
Warning

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

Go to latest
Published: May 9, 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 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

func (*Int64) Value

func (n *Int64) Value() (driver.Value, 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