null

package
v0.0.0-...-39e0c7e Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullBool

type NullBool struct {
	sql.NullBool
}

NullBool is an alias for sql.NullBool data type

func NewNullBool

func NewNullBool(s bool) NullBool

NewNullBool returns a sql.NullBool for JSON parsing

func (NullBool) MarshalJSON

func (bb NullBool) MarshalJSON() ([]byte, error)

MarshalJSON for NullBool

func (NullBool) MarshalYAML

func (bb NullBool) MarshalYAML() (interface{}, error)

MarshalYAML for NullBool

func (*NullBool) UnmarshalJSON

func (bb *NullBool) UnmarshalJSON(b []byte) error

Unmarshaler for NullBool

func (*NullBool) UnmarshalYAML

func (bb *NullBool) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML for NullBool

type NullFloat64

type NullFloat64 struct {
	sql.NullFloat64
}

NullFloat64 is an alias for sql.NullFloat64 data type

func NewNullFloat64

func NewNullFloat64(s float64) NullFloat64

NewNullFloat64 returns a sql.NullFloat64 for JSON parsing

func (NullFloat64) MarshalJSON

func (f NullFloat64) MarshalJSON() ([]byte, error)

MarshalJSON for NullFloat64

func (NullFloat64) MarshalYAML

func (f NullFloat64) MarshalYAML() (interface{}, error)

MarshalYAML for NullFloat64

func (*NullFloat64) UnmarshalJSON

func (f *NullFloat64) UnmarshalJSON(b []byte) error

Unmarshaler for NullFloat64

func (*NullFloat64) UnmarshalYAML

func (f *NullFloat64) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML for NullFloat64

type NullInt64

type NullInt64 struct {
	sql.NullInt64
}

NullInt64 is an alias for sql.NullInt64 data type

func NewNullInt64

func NewNullInt64(s int64) NullInt64

NewNullInt64 returns a sql.NullInt64 for JSON parsing

func (NullInt64) MarshalJSON

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

MarshalJSON for NullInt64

func (NullInt64) MarshalYAML

func (i NullInt64) MarshalYAML() (interface{}, error)

MarshalYAML for NullInt64

func (*NullInt64) UnmarshalJSON

func (i *NullInt64) UnmarshalJSON(b []byte) error

Unmarshaler for NullInt64

func (*NullInt64) UnmarshalYAML

func (i *NullInt64) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML for NullInt64

type NullString

type NullString struct {
	sql.NullString
}

NullString is an alias for sql.NullString data type

func NewNullString

func NewNullString(s string) NullString

NewNullString returns a sql.NullString for JSON parsing

func (NullString) MarshalJSON

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

MarshalJSON for NullString

func (NullString) MarshalYAML

func (s NullString) MarshalYAML() (interface{}, error)

MarshalYAML for NullString

func (*NullString) UnmarshalJSON

func (s *NullString) UnmarshalJSON(b []byte) error

Unmarshaler for NullString

func (*NullString) UnmarshalYAML

func (s *NullString) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML for NullFloat64

func (NullString) Value

func (s NullString) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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