types

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Float32Slice

type Float32Slice struct {
	Floats []float32
}

Float32Slice a comma separated float32

func (Float32Slice) MarshalJSON

func (me Float32Slice) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*Float32Slice) Scan

func (me *Float32Slice) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*Float32Slice) UnmarshalJSON

func (me *Float32Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*Float32Slice) Val

func (me *Float32Slice) Val() interface{}

Val get nullable value

func (*Float32Slice) Value

func (me *Float32Slice) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Float64Slice

type Float64Slice struct {
	Floats []float64
}

Float64Slice a comma separated float64

func (Float64Slice) MarshalJSON

func (me Float64Slice) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*Float64Slice) Scan

func (me *Float64Slice) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*Float64Slice) UnmarshalJSON

func (me *Float64Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*Float64Slice) Val

func (me *Float64Slice) Val() interface{}

Val get nullable value

func (*Float64Slice) Value

func (me *Float64Slice) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Int8Slice

type Int8Slice struct {
	Ints []int8
}

Int8Slice a comma separated int8

func (Int8Slice) MarshalJSON

func (me Int8Slice) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*Int8Slice) Scan

func (me *Int8Slice) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*Int8Slice) UnmarshalJSON

func (me *Int8Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*Int8Slice) Val

func (me *Int8Slice) Val() interface{}

Val get nullable value

func (*Int8Slice) Value

func (me *Int8Slice) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Int16Slice

type Int16Slice struct {
	Ints []int16
}

Int16Slice a comma separated int16

func (Int16Slice) MarshalJSON

func (me Int16Slice) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*Int16Slice) Scan

func (me *Int16Slice) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*Int16Slice) UnmarshalJSON

func (me *Int16Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*Int16Slice) Val

func (me *Int16Slice) Val() interface{}

Val get nullable value

func (*Int16Slice) Value

func (me *Int16Slice) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Int32Slice

type Int32Slice struct {
	Ints []int32
}

Int32Slice a comma separated int32

func (Int32Slice) MarshalJSON

func (me Int32Slice) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*Int32Slice) Scan

func (me *Int32Slice) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*Int32Slice) UnmarshalJSON

func (me *Int32Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*Int32Slice) Val

func (me *Int32Slice) Val() interface{}

Val get nullable value

func (*Int32Slice) Value

func (me *Int32Slice) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Int64Slice

type Int64Slice struct {
	Ints []int64
}

Int64Slice a comma separated int64

func (Int64Slice) MarshalJSON

func (me Int64Slice) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*Int64Slice) Scan

func (me *Int64Slice) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*Int64Slice) UnmarshalJSON

func (me *Int64Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*Int64Slice) Val

func (me *Int64Slice) Val() interface{}

Val get nullable value

func (*Int64Slice) Value

func (me *Int64Slice) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type IntSlice

type IntSlice struct {
	Ints []int
}

IntSlice a comma separated int

func (IntSlice) MarshalJSON

func (me IntSlice) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*IntSlice) Scan

func (me *IntSlice) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*IntSlice) UnmarshalJSON

func (me *IntSlice) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*IntSlice) Val

func (me *IntSlice) Val() interface{}

Val get nullable value

func (*IntSlice) Value

func (me *IntSlice) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullBool

type NullBool struct {
	Bool  bool
	Valid bool
}

NullBool nullable string keeper

func (NullBool) MarshalJSON

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

MarshalJSON convert to json

func (*NullBool) Scan

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

Scan implements the Scanner interface.

func (*NullBool) UnmarshalJSON

func (nb *NullBool) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*NullBool) Val

func (nb *NullBool) Val() interface{}

Val get nullable value

func (*NullBool) Value

func (nb *NullBool) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullFloat32

type NullFloat32 struct {
	Float32 float32
	Valid   bool
}

NullFloat32 nullable string keeper

func (NullFloat32) MarshalJSON

func (me NullFloat32) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*NullFloat32) Scan

func (me *NullFloat32) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*NullFloat32) UnmarshalJSON

func (me *NullFloat32) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*NullFloat32) Val

func (me *NullFloat32) Val() interface{}

Val get nullable value

func (*NullFloat32) Value

func (me *NullFloat32) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullFloat64

type NullFloat64 struct {
	Float64 float64
	Valid   bool
}

NullFloat64 nullable string keeper

func (NullFloat64) MarshalJSON

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

MarshalJSON convert to json

func (*NullFloat64) Scan

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

Scan implements the Scanner interface.

func (*NullFloat64) UnmarshalJSON

func (me *NullFloat64) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*NullFloat64) Val

func (me *NullFloat64) Val() interface{}

Val get nullable value

func (*NullFloat64) Value

func (me *NullFloat64) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullInt

type NullInt struct {
	Int   int
	Valid bool
}

NullInt nullable string keeper

func (NullInt) MarshalJSON

func (me NullInt) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*NullInt) Scan

func (me *NullInt) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*NullInt) UnmarshalJSON

func (me *NullInt) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*NullInt) Val

func (me *NullInt) Val() interface{}

Val get nullable value

func (*NullInt) Value

func (me *NullInt) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullInt8

type NullInt8 struct {
	Int8  int8
	Valid bool
}

NullInt8 nullable string keeper

func (NullInt8) MarshalJSON

func (me NullInt8) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*NullInt8) Scan

func (me *NullInt8) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*NullInt8) UnmarshalJSON

func (me *NullInt8) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*NullInt8) Val

func (me *NullInt8) Val() interface{}

Val get nullable value

func (*NullInt8) Value

func (me *NullInt8) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullInt16

type NullInt16 struct {
	Int16 int16
	Valid bool
}

NullInt16 nullable string keeper

func (NullInt16) MarshalJSON

func (me NullInt16) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*NullInt16) Scan

func (me *NullInt16) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*NullInt16) UnmarshalJSON

func (me *NullInt16) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*NullInt16) Val

func (me *NullInt16) Val() interface{}

Val get nullable value

func (*NullInt16) Value

func (me *NullInt16) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullInt32

type NullInt32 struct {
	Int32 int32
	Valid bool
}

NullInt32 nullable string keeper

func (NullInt32) MarshalJSON

func (me NullInt32) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*NullInt32) Scan

func (me *NullInt32) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*NullInt32) UnmarshalJSON

func (me *NullInt32) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*NullInt32) Val

func (me *NullInt32) Val() interface{}

Val get nullable value

func (*NullInt32) Value

func (me *NullInt32) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullInt64

type NullInt64 struct {
	Int64 int64
	Valid bool
}

NullInt64 nullable string keeper

func (NullInt64) MarshalJSON

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

MarshalJSON convert to json

func (*NullInt64) Scan

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

Scan implements the Scanner interface.

func (*NullInt64) UnmarshalJSON

func (me *NullInt64) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*NullInt64) Val

func (me *NullInt64) Val() interface{}

Val get nullable value

func (*NullInt64) Value

func (me *NullInt64) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullString

type NullString struct {
	String string
	Valid  bool
}

NullString nullable string keeper

func (NullString) MarshalJSON

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

MarshalJSON convert to json

func (*NullString) Scan

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

Scan implements the Scanner interface.

func (*NullString) UnmarshalJSON

func (me *NullString) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*NullString) Val

func (me *NullString) Val() interface{}

Val get nullable value

func (*NullString) Value

func (me *NullString) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullTime

type NullTime struct {
	Time  time.Time
	Valid bool
}

NullTime nullable string keeper

func (NullTime) MarshalJSON

func (me NullTime) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*NullTime) Scan

func (me *NullTime) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*NullTime) UnmarshalJSON

func (me *NullTime) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*NullTime) Val

func (me *NullTime) Val() interface{}

Val get nullable value

func (*NullTime) Value

func (me *NullTime) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullUInt

type NullUInt struct {
	UInt  uint
	Valid bool
}

NullUInt nullable string keeper

func (NullUInt) MarshalJSON

func (me NullUInt) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*NullUInt) Scan

func (me *NullUInt) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*NullUInt) UnmarshalJSON

func (me *NullUInt) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*NullUInt) Val

func (me *NullUInt) Val() interface{}

Val get nullable value

func (*NullUInt) Value

func (me *NullUInt) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullUInt8

type NullUInt8 struct {
	UInt8 uint8
	Valid bool
}

NullUInt8 nullable string keeper

func (NullUInt8) MarshalJSON

func (me NullUInt8) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*NullUInt8) Scan

func (me *NullUInt8) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*NullUInt8) UnmarshalJSON

func (me *NullUInt8) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*NullUInt8) Val

func (me *NullUInt8) Val() interface{}

Val get nullable value

func (*NullUInt8) Value

func (me *NullUInt8) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullUInt16

type NullUInt16 struct {
	UInt16 uint16
	Valid  bool
}

NullUInt16 nullable string keeper

func (NullUInt16) MarshalJSON

func (me NullUInt16) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*NullUInt16) Scan

func (me *NullUInt16) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*NullUInt16) UnmarshalJSON

func (me *NullUInt16) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*NullUInt16) Val

func (me *NullUInt16) Val() interface{}

Val get nullable value

func (*NullUInt16) Value

func (me *NullUInt16) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullUInt32

type NullUInt32 struct {
	UInt32 uint32
	Valid  bool
}

NullUInt32 nullable string keeper

func (NullUInt32) MarshalJSON

func (me NullUInt32) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*NullUInt32) Scan

func (me *NullUInt32) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*NullUInt32) UnmarshalJSON

func (me *NullUInt32) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*NullUInt32) Val

func (me *NullUInt32) Val() interface{}

Val get nullable value

func (*NullUInt32) Value

func (me *NullUInt32) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullUInt64

type NullUInt64 struct {
	UInt64 uint64
	Valid  bool
}

NullUInt64 nullable string keeper

func (NullUInt64) MarshalJSON

func (me NullUInt64) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*NullUInt64) Scan

func (me *NullUInt64) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*NullUInt64) UnmarshalJSON

func (me *NullUInt64) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*NullUInt64) Val

func (me *NullUInt64) Val() interface{}

Val get nullable value

func (*NullUInt64) Value

func (me *NullUInt64) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type StringSlice

type StringSlice struct {
	Strings []string
}

StringSlice a comma separated string

func (StringSlice) MarshalJSON

func (me StringSlice) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*StringSlice) Scan

func (me *StringSlice) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*StringSlice) UnmarshalJSON

func (me *StringSlice) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*StringSlice) Val

func (me *StringSlice) Val() interface{}

Val get nullable value

func (*StringSlice) Value

func (me *StringSlice) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type UInt8Slice

type UInt8Slice struct {
	Ints []uint8
}

UInt8Slice a comma separated uint8

func (UInt8Slice) MarshalJSON

func (me UInt8Slice) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*UInt8Slice) Scan

func (me *UInt8Slice) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*UInt8Slice) UnmarshalJSON

func (me *UInt8Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*UInt8Slice) Val

func (me *UInt8Slice) Val() interface{}

Val get nullable value

func (*UInt8Slice) Value

func (me *UInt8Slice) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type UInt16Slice

type UInt16Slice struct {
	Ints []uint16
}

UInt16Slice a comma separated uint16

func (UInt16Slice) MarshalJSON

func (me UInt16Slice) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*UInt16Slice) Scan

func (me *UInt16Slice) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*UInt16Slice) UnmarshalJSON

func (me *UInt16Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*UInt16Slice) Val

func (me *UInt16Slice) Val() interface{}

Val get nullable value

func (*UInt16Slice) Value

func (me *UInt16Slice) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type UInt32Slice

type UInt32Slice struct {
	Ints []int32
}

UInt32Slice a comma separated int32

func (UInt32Slice) MarshalJSON

func (me UInt32Slice) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*UInt32Slice) Scan

func (me *UInt32Slice) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*UInt32Slice) UnmarshalJSON

func (me *UInt32Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*UInt32Slice) Val

func (me *UInt32Slice) Val() interface{}

Val get nullable value

func (*UInt32Slice) Value

func (me *UInt32Slice) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type UInt64Slice

type UInt64Slice struct {
	Ints []uint64
}

UInt64Slice a comma separated uint64

func (UInt64Slice) MarshalJSON

func (me UInt64Slice) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*UInt64Slice) Scan

func (me *UInt64Slice) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*UInt64Slice) UnmarshalJSON

func (me *UInt64Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*UInt64Slice) Val

func (me *UInt64Slice) Val() interface{}

Val get nullable value

func (*UInt64Slice) Value

func (me *UInt64Slice) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type UIntSlice

type UIntSlice struct {
	Ints []uint
}

UIntSlice a comma separated uint

func (UIntSlice) MarshalJSON

func (me UIntSlice) MarshalJSON() ([]byte, error)

MarshalJSON convert to json

func (*UIntSlice) Scan

func (me *UIntSlice) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*UIntSlice) UnmarshalJSON

func (me *UIntSlice) UnmarshalJSON(data []byte) error

UnmarshalJSON parse from json

func (*UIntSlice) Val

func (me *UIntSlice) Val() interface{}

Val get nullable value

func (*UIntSlice) Value

func (me *UIntSlice) Value() (driver.Value, error)

Value implements the driver Valuer interface.

Jump to

Keyboard shortcuts

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