Documentation ¶
Index ¶
- func SQLByte(src interface{}) ([]byte, error)
- func UnmarshalFromSQL(target, source interface{}) error
- func UnquoteBytes(s []byte) (t []byte, ok bool)
- type Bytes
- type Entity
- func (entity *Entity) GetBytes() (b []byte, err error)
- func (entity *Entity) GetString() (s string, err error)
- func (entity Entity) MarshalJSON() ([]byte, error)
- func (v *Entity) Scan(src interface{}) error
- func (entity *Entity) UnmarshalJSON(data []byte) (err error)
- func (v Entity) Value() (driver.Value, error)
- type Sec
- type Unix
- type UnixMilli
- func (t UnixMilli) DateTime() time.Time
- func (t UnixMilli) MarshalBSONValue() (bsontype.Type, []byte, error)
- func (t UnixMilli) MarshalJSON() ([]byte, error)
- func (t UnixMilli) Time() time.Time
- func (t *UnixMilli) UnmarshalBSONValue(typ bsontype.Type, data []byte) (err error)
- func (t *UnixMilli) UnmarshalJSON(s []byte) (err error)
- func (t UnixMilli) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalFromSQL ¶
func UnmarshalFromSQL(target, source interface{}) error
func UnquoteBytes ¶
Types ¶
type Entity ¶
type Entity struct {
Data interface{}
}
func ByteEntity ¶
func StringEntity ¶
func (Entity) MarshalJSON ¶
func (*Entity) UnmarshalJSON ¶
type UnixMilli ¶
func (UnixMilli) MarshalBSONValue ¶
func (UnixMilli) MarshalJSON ¶
func (*UnixMilli) UnmarshalBSONValue ¶
func (*UnixMilli) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.