Documentation ¶
Index ¶
- type Bool
- func (t *Bool) Get() bool
- func (t *Bool) GetPtr() *bool
- func (t *Bool) MarshalJSON() ([]byte, error)
- func (t *Bool) Reset()
- func (t *Bool) Scan(value interface{}) error
- func (t *Bool) Set(data bool)
- func (t *Bool) String() string
- func (t *Bool) UnmarshalJSON(data []byte) error
- func (t *Bool) Valid() bool
- func (t *Bool) Value() (driver.Value, error)
- type Byte
- func (t *Byte) Get() byte
- func (t *Byte) GetPtr() *byte
- func (t *Byte) MarshalJSON() ([]byte, error)
- func (t *Byte) Reset()
- func (t *Byte) Scan(value interface{}) error
- func (t *Byte) Set(data byte)
- func (t *Byte) String() string
- func (t *Byte) UnmarshalJSON(data []byte) error
- func (t *Byte) Valid() bool
- func (t *Byte) Value() (driver.Value, error)
- type Date
- func (t *Date) Get() time.Time
- func (t *Date) GetPtr() *time.Time
- func (t *Date) GetTimestamppb() *timestamppb.Timestamp
- func (t *Date) MarshalJSON() ([]byte, error)
- func (t *Date) Reset()
- func (t *Date) Scan(value interface{}) error
- func (t *Date) Set(data time.Time)
- func (t Date) SetFormat(format string) Date
- func (t *Date) String() string
- func (t *Date) ToString(format string) string
- func (t *Date) ToStringPtr(format string) *string
- func (t *Date) UnmarshalJSON(data []byte) error
- func (t *Date) Valid() bool
- func (t *Date) Value() (driver.Value, error)
- type Float64
- func (t *Float64) Get() float64
- func (t *Float64) GetPtr() *float64
- func (t *Float64) MarshalJSON() ([]byte, error)
- func (t *Float64) Reset()
- func (t *Float64) Scan(value interface{}) error
- func (t *Float64) Set(data float64)
- func (t *Float64) String() string
- func (t *Float64) UnmarshalJSON(data []byte) error
- func (t *Float64) Valid() bool
- func (t *Float64) Value() (driver.Value, error)
- type Int16
- func (t *Int16) Get() int16
- func (t *Int16) GetPtr() *int16
- func (t *Int16) MarshalJSON() ([]byte, error)
- func (t *Int16) Reset()
- func (t *Int16) Scan(value interface{}) error
- func (t *Int16) Set(data int16)
- func (t *Int16) String() string
- func (t *Int16) UnmarshalJSON(data []byte) error
- func (t *Int16) Valid() bool
- func (t *Int16) Value() (driver.Value, error)
- type Int32
- func (t *Int32) Get() int32
- func (t *Int32) GetPtr() *int32
- func (t *Int32) MarshalJSON() ([]byte, error)
- func (t *Int32) Reset()
- func (t *Int32) Scan(value interface{}) error
- func (t *Int32) Set(data int32)
- func (t *Int32) String() string
- func (t *Int32) UnmarshalJSON(data []byte) error
- func (t *Int32) Valid() bool
- func (t *Int32) Value() (driver.Value, error)
- type Int64
- func (t *Int64) Get() int64
- func (t *Int64) GetPtr() *int64
- func (t *Int64) MarshalJSON() ([]byte, error)
- func (t *Int64) Reset()
- func (t *Int64) Scan(value interface{}) error
- func (t *Int64) Set(data int64)
- func (t *Int64) String() string
- func (t *Int64) UnmarshalJSON(data []byte) error
- func (t *Int64) Valid() bool
- func (t *Int64) Value() (driver.Value, error)
- type String
- func (t *String) Get() string
- func (t *String) GetPtr() *string
- func (t *String) MarshalJSON() ([]byte, error)
- func (t *String) Reset()
- func (t *String) Scan(value interface{}) error
- func (t *String) Set(data string)
- func (t *String) String() string
- func (t *String) UnmarshalJSON(data []byte) error
- func (t *String) Valid() bool
- func (t *String) Value() (driver.Value, error)
- type Time
- func (t *Time) Get() time.Time
- func (t *Time) GetPtr() *time.Time
- func (t *Time) GetTimestamppb() *timestamppb.Timestamp
- func (t *Time) MarshalJSON() ([]byte, error)
- func (t *Time) Reset()
- func (t *Time) Scan(value interface{}) error
- func (t *Time) Set(data time.Time)
- func (t Time) SetFormat(format string) Time
- func (t *Time) String() string
- func (t *Time) ToString(format string) string
- func (t *Time) ToStringPtr(format string) *string
- func (t *Time) UnmarshalJSON(data []byte) error
- func (t *Time) Valid() bool
- func (t *Time) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Date ¶
func NewDateFromTimestamppb ¶
func NewDateFromTimestamppb(data *timestamppb.Timestamp) Date
func (*Date) GetTimestamppb ¶
func (t *Date) GetTimestamppb() *timestamppb.Timestamp
func (*Date) MarshalJSON ¶
func (*Date) ToStringPtr ¶
func (*Date) UnmarshalJSON ¶
type Float64 ¶
type Float64 struct {
Data sql.NullFloat64
}
func NewFloat64 ¶
func (*Float64) MarshalJSON ¶
func (*Float64) UnmarshalJSON ¶
type String ¶
type String struct {
Data sql.NullString
}
func (*String) MarshalJSON ¶
func (*String) UnmarshalJSON ¶
type Time ¶
func NewTimeFromTimestamppb ¶
func NewTimeFromTimestamppb(data *timestamppb.Timestamp) Time
func (*Time) GetTimestamppb ¶
func (t *Time) GetTimestamppb() *timestamppb.Timestamp
func (*Time) MarshalJSON ¶
func (*Time) ToStringPtr ¶
func (*Time) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.