Documentation ¶
Index ¶
- type Bool
- func (n Bool) Get() *bool
- func (Bool) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Bool) GormDataType() string
- func (n Bool) MarshalJSON() ([]byte, error)
- func (n *Bool) Scan(value interface{}) error
- func (n *Bool) Set(value *bool)
- func (n *Bool) UnmarshalJSON(data []byte) error
- func (n Bool) Value() (driver.Value, error)
- type Byte
- func (n Byte) Get() *byte
- func (Byte) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Byte) GormDataType() string
- func (n Byte) MarshalJSON() ([]byte, error)
- func (n *Byte) Scan(value interface{}) error
- func (n *Byte) Set(value *byte)
- func (n *Byte) UnmarshalJSON(data []byte) error
- func (n Byte) Value() (driver.Value, error)
- type Bytes
- func (n Bytes) Get() *[]byte
- func (Bytes) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Bytes) GormDataType() string
- func (n Bytes) MarshalJSON() ([]byte, error)
- func (n *Bytes) Scan(value interface{}) error
- func (n *Bytes) Set(value *[]byte)
- func (n *Bytes) UnmarshalJSON(data []byte) error
- func (n Bytes) Value() (driver.Value, error)
- type Float32
- func (n Float32) Get() *float32
- func (Float32) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Float32) GormDataType() string
- func (n Float32) MarshalJSON() ([]byte, error)
- func (n *Float32) Scan(value interface{}) error
- func (n *Float32) Set(value *float32)
- func (n *Float32) UnmarshalJSON(data []byte) error
- func (n Float32) Value() (driver.Value, error)
- type Float64
- func (n Float64) Get() *float64
- func (Float64) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Float64) GormDataType() string
- func (n Float64) MarshalJSON() ([]byte, error)
- func (n *Float64) Scan(value interface{}) error
- func (n *Float64) Set(value *float64)
- func (n *Float64) UnmarshalJSON(data []byte) error
- func (n Float64) Value() (driver.Value, error)
- type Int
- func (n Int) Get() *int
- func (Int) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Int) GormDataType() string
- func (n Int) MarshalJSON() ([]byte, error)
- func (n *Int) Scan(value interface{}) error
- func (n *Int) Set(value *int)
- func (n *Int) UnmarshalJSON(data []byte) error
- func (n Int) Value() (driver.Value, error)
- type Int16
- func (n Int16) Get() *int16
- func (Int16) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Int16) GormDataType() string
- func (n Int16) MarshalJSON() ([]byte, error)
- func (n *Int16) Scan(value interface{}) error
- func (n *Int16) Set(value *int16)
- func (n *Int16) UnmarshalJSON(data []byte) error
- func (n Int16) Value() (driver.Value, error)
- type Int32
- func (n Int32) Get() *int32
- func (Int32) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Int32) GormDataType() string
- func (n Int32) MarshalJSON() ([]byte, error)
- func (n *Int32) Scan(value interface{}) error
- func (n *Int32) Set(value *int32)
- func (n *Int32) UnmarshalJSON(data []byte) error
- func (n Int32) Value() (driver.Value, error)
- type Int64
- func (n Int64) Get() *int64
- func (Int64) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Int64) GormDataType() string
- func (n Int64) MarshalJSON() ([]byte, error)
- func (n *Int64) Scan(value interface{}) error
- func (n *Int64) Set(value *int64)
- func (n *Int64) UnmarshalJSON(data []byte) error
- func (n Int64) Value() (driver.Value, error)
- type Int8
- func (n Int8) Get() *int8
- func (Int8) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Int8) GormDataType() string
- func (n Int8) MarshalJSON() ([]byte, error)
- func (n *Int8) Scan(value interface{}) error
- func (n *Int8) Set(value *int8)
- func (n *Int8) UnmarshalJSON(data []byte) error
- func (n Int8) Value() (driver.Value, error)
- type String
- func (n String) Get() *string
- func (String) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (String) GormDataType() string
- func (n String) MarshalJSON() ([]byte, error)
- func (n *String) Scan(value interface{}) error
- func (n *String) Set(value *string)
- func (n *String) UnmarshalJSON(data []byte) error
- func (n String) Value() (driver.Value, error)
- type Time
- func (n Time) Get() *time.Time
- func (Time) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Time) GormDataType() string
- func (n Time) MarshalJSON() ([]byte, error)
- func (n *Time) Scan(value interface{}) error
- func (n *Time) Set(value *time.Time)
- func (n *Time) UnmarshalJSON(data []byte) error
- func (n Time) Value() (driver.Value, error)
- type Uint
- func (n Uint) Get() *uint
- func (Uint) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Uint) GormDataType() string
- func (n Uint) GormValue(ctx context.Context, db *gorm.DB) clause.Expr
- func (n Uint) MarshalJSON() ([]byte, error)
- func (n *Uint) Scan(value interface{}) error
- func (n *Uint) Set(value *uint)
- func (n *Uint) UnmarshalJSON(data []byte) error
- func (n Uint) Value() (driver.Value, error)
- type Uint16
- func (n Uint16) Get() *uint16
- func (Uint16) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Uint16) GormDataType() string
- func (n Uint16) GormValue(ctx context.Context, db *gorm.DB) clause.Expr
- func (n Uint16) MarshalJSON() ([]byte, error)
- func (n *Uint16) Scan(value interface{}) error
- func (n *Uint16) Set(value *uint16)
- func (n *Uint16) UnmarshalJSON(data []byte) error
- func (n Uint16) Value() (driver.Value, error)
- type Uint32
- func (n Uint32) Get() *uint32
- func (Uint32) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Uint32) GormDataType() string
- func (n Uint32) GormValue(ctx context.Context, db *gorm.DB) clause.Expr
- func (n Uint32) MarshalJSON() ([]byte, error)
- func (n *Uint32) Scan(value interface{}) error
- func (n *Uint32) Set(value *uint32)
- func (n *Uint32) UnmarshalJSON(data []byte) error
- func (n Uint32) Value() (driver.Value, error)
- type Uint64
- func (n Uint64) Get() *uint64
- func (Uint64) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Uint64) GormDataType() string
- func (n Uint64) GormValue(ctx context.Context, db *gorm.DB) clause.Expr
- func (n Uint64) MarshalJSON() ([]byte, error)
- func (n *Uint64) Scan(value interface{}) error
- func (n *Uint64) Set(value *uint64)
- func (n *Uint64) UnmarshalJSON(data []byte) error
- func (n Uint64) Value() (driver.Value, error)
- type Uint8
- func (n Uint8) Get() *uint8
- func (Uint8) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Uint8) GormDataType() string
- func (n Uint8) GormValue(ctx context.Context, db *gorm.DB) clause.Expr
- func (n Uint8) MarshalJSON() ([]byte, error)
- func (n *Uint8) Scan(value interface{}) error
- func (n *Uint8) Set(value *uint8)
- func (n *Uint8) UnmarshalJSON(data []byte) error
- func (n Uint8) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
Bool SQL type that can retrieve NULL value
func (Bool) GormDBDataType ¶
GormDBDataType gorm db data type
func (Bool) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*Bool) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type
type Byte ¶
type Byte struct {
// contains filtered or unexported fields
}
Byte SQL type that can retrieve NULL value
func (Byte) GormDBDataType ¶
GormDBDataType gorm db data type
func (Byte) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*Byte) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
Bytes SQL type that can retrieve NULL value
func (Bytes) GormDBDataType ¶
GormDBDataType gorm db data type
func (Bytes) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*Bytes) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type
type Float32 ¶
type Float32 struct {
// contains filtered or unexported fields
}
Float32 SQL type that can retrieve NULL value
func (Float32) GormDBDataType ¶
GormDBDataType gorm db data type
func (Float32) GormDataType ¶
GormDataType gorm common data type
func (Float32) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*Float32) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type
type Float64 ¶
type Float64 struct {
// contains filtered or unexported fields
}
Float64 SQL type that can retrieve NULL value
func NewFloat64 ¶
NewFloat64 creates a new nullable double precision float
func (Float64) GormDBDataType ¶
GormDBDataType gorm db data type
func (Float64) GormDataType ¶
GormDataType gorm common data type
func (Float64) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*Float64) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type
type Int ¶
type Int struct {
// contains filtered or unexported fields
}
Int SQL type that can retrieve NULL value
func (Int) GormDBDataType ¶
GormDBDataType gorm db data type
func (Int) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*Int) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type
type Int16 ¶
type Int16 struct {
// contains filtered or unexported fields
}
Int16 SQL type that can retrieve NULL value
func (Int16) GormDBDataType ¶
GormDBDataType gorm db data type
func (Int16) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*Int16) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type
type Int32 ¶
type Int32 struct {
// contains filtered or unexported fields
}
Int32 SQL type that can retrieve NULL value
func (Int32) GormDBDataType ¶
GormDBDataType gorm db data type
func (Int32) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*Int32) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type
type Int64 ¶
type Int64 struct {
// contains filtered or unexported fields
}
Int64 SQL type that can retrieve NULL value
func (Int64) GormDBDataType ¶
GormDBDataType gorm db data type
func (Int64) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*Int64) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type
type Int8 ¶
type Int8 struct {
// contains filtered or unexported fields
}
Int8 SQL type that can retrieve NULL value
func (Int8) GormDBDataType ¶
GormDBDataType gorm db data type
func (Int8) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*Int8) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type
type String ¶
type String struct {
// contains filtered or unexported fields
}
String SQL type that can retrieve NULL value
func (String) GormDBDataType ¶
GormDBDataType gorm db data type
func (String) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*String) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type
type Time ¶
type Time struct {
// contains filtered or unexported fields
}
Time SQL type that can retrieve NULL value
func (Time) GormDBDataType ¶
GormDBDataType gorm db data type
func (Time) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*Time) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type
type Uint ¶
type Uint struct {
// contains filtered or unexported fields
}
Uint SQL type that can retrieve NULL value
func (Uint) GormDBDataType ¶
GormDBDataType gorm db data type
func (Uint) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*Uint) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type
type Uint16 ¶
type Uint16 struct {
// contains filtered or unexported fields
}
Uint16 SQL type that can retrieve NULL value
func (Uint16) GormDBDataType ¶
GormDBDataType gorm db data type
func (Uint16) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*Uint16) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type
type Uint32 ¶
type Uint32 struct {
// contains filtered or unexported fields
}
Uint32 SQL type that can retrieve NULL value
func (Uint32) GormDBDataType ¶
GormDBDataType gorm db data type
func (Uint32) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*Uint32) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type
type Uint64 ¶
type Uint64 struct {
// contains filtered or unexported fields
}
Uint64 SQL type that can retrieve NULL value
func (Uint64) GormDBDataType ¶
GormDBDataType gorm db data type
func (Uint64) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*Uint64) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type
type Uint8 ¶
type Uint8 struct {
// contains filtered or unexported fields
}
Uint8 SQL type that can retrieve NULL value
func (Uint8) GormDBDataType ¶
GormDBDataType gorm db data type
func (Uint8) MarshalJSON ¶
MarshalJSON converts current value to JSON
func (*Uint8) UnmarshalJSON ¶
UnmarshalJSON writes JSON to this type