fields

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullBool added in v0.0.3

type NullBool sql.NullBool

NullBool is an alias for sql.NullBool data type

func (NullBool) MarshalJSON added in v0.0.3

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

MarshalJSON for NullBool

func (*NullBool) Scan added in v0.0.3

func (nb *NullBool) Scan(value interface{}) error

Scan implements the Scanner interface for NullBool

func (NullBool) UnmarshalJSON added in v0.0.3

func (nb NullBool) UnmarshalJSON(b []byte) error

UnmarshalJSON for NullBool

type NullFloat64 added in v0.0.3

type NullFloat64 sql.NullFloat64

NullFloat64 is an alias for sql.NullFloat64 data type

func (NullFloat64) MarshalJSON added in v0.0.3

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

MarshalJSON for NullFloat64

func (*NullFloat64) Scan added in v0.0.3

func (nf *NullFloat64) Scan(value interface{}) error

Scan implements the Scanner interface for NullFloat64

func (NullFloat64) UnmarshalJSON added in v0.0.3

func (nf NullFloat64) UnmarshalJSON(b []byte) error

UnmarshalJSON for NullFloat64

type NullInt64 added in v0.0.3

type NullInt64 sql.NullInt64

NullInt64 is an alias for sql.NullInt64 data type

func (NullInt64) MarshalJSON added in v0.0.3

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

MarshalJSON for NullInt64

func (*NullInt64) Scan added in v0.0.3

func (ni *NullInt64) Scan(value interface{}) error

Scan implements the Scanner interface for NullInt64

func (NullInt64) UnmarshalJSON added in v0.0.3

func (ni NullInt64) UnmarshalJSON(b []byte) error

UnmarshalJSON for NullInt64

type NullString added in v0.0.3

type NullString sql.NullString

NullString is an alias for sql.NullString data type

func (NullString) MarshalJSON added in v0.0.3

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

MarshalJSON for NullString

func (*NullString) Scan added in v0.0.3

func (ns *NullString) Scan(value interface{}) error

Scan implements the Scanner interface for NullString

func (NullString) UnmarshalJSON added in v0.0.3

func (ns NullString) UnmarshalJSON(b []byte) error

UnmarshalJSON for NullString

type StrArray

type StrArray []string

StrArray type for easy db->json->db convert string arrays

func (*StrArray) Scan

func (h *StrArray) Scan(val interface{}) error

Scan unmarshal json-field into []string

func (StrArray) Value

func (h StrArray) Value() (driver.Value, error)

Value marshals []string into json field

Jump to

Keyboard shortcuts

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