nullable

package
v0.0.0-...-33a7194 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OurNewNullString

type OurNewNullString sql.NullString

Because sql.NullString is not serializable We create new similar type

func (OurNewNullString) MarshalJSON

func (ourNS OurNewNullString) MarshalJSON() ([]byte, error)

for JSON serialization

func (*OurNewNullString) Scan

func (s *OurNewNullString) Scan(dbValue interface{}) error

For Selects

func (*OurNewNullString) UnmarshalJSON

func (ourNS *OurNewNullString) UnmarshalJSON(text []byte) error

for JSON deserialization

func (*OurNewNullString) Value

func (s *OurNewNullString) Value() (driver.Value, error)

For inserting NULL values

Jump to

Keyboard shortcuts

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