Versions in this module Expand all Collapse all v1 v1.0.2 Sep 21, 2024 v1.0.1 Sep 14, 2024 Changes in this version + func SQLByte(src interface{}) ([]byte, error) + func UnmarshalFromSQL(target, source interface{}) error + func UnquoteBytes(s []byte) (t []byte, ok bool) + type Bytes []byte + func (b *Bytes) UnmarshalJSON(data []byte) (err error) + func (b Bytes) Get() []byte + func (b Bytes) MarshalJSON() ([]byte, error) + type Entity struct + Data interface{} + func ByteEntity(b []byte) *Entity + func StringEntity(s string) *Entity + func (entity *Entity) GetBytes() (b []byte, err error) + func (entity *Entity) GetString() (s string, err error) + func (entity *Entity) UnmarshalJSON(data []byte) (err error) + func (entity Entity) MarshalJSON() ([]byte, error) + func (v *Entity) Scan(src interface{}) error + func (v Entity) Value() (driver.Value, error) + type Sec time.Duration + func (t *Sec) UnmarshalJSON(s []byte) (err error) + func (t Sec) Duration() time.Duration + func (t Sec) MarshalJSON() ([]byte, error) + type Unix time.Time + func (t *Unix) UnmarshalJSON(s []byte) (err error) + func (t Unix) MarshalJSON() ([]byte, error) + func (t Unix) Time() time.Time + type UnixMilli time.Time + func (t *UnixMilli) UnmarshalBSONValue(typ bsontype.Type, data []byte) (err error) + func (t *UnixMilli) UnmarshalJSON(s []byte) (err error) + 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) Value() (driver.Value, error)