Documentation ¶
Index ¶
- Constants
- type Bool
- type Date
- func (d *Date) Display() string
- func (d *Date) MarshalBSONValue() (bsontype.Type, []byte, error)
- func (d *Date) MarshalJSON() ([]byte, error)
- func (d *Date) MarshalText() ([]byte, error)
- func (d *Date) Scan(src any) error
- func (d *Date) String() string
- func (d *Date) TimeValue() *time.Time
- func (d *Date) UnmarshalBSON(bytes []byte) error
- func (d *Date) UnmarshalText(text []byte) error
- type Datetime
- func (d *Datetime) Display() string
- func (d *Datetime) MarshalBSON() ([]byte, error)
- func (d *Datetime) MarshalBSONValue() (bsontype.Type, []byte, error)
- func (d *Datetime) MarshalJSON() ([]byte, error)
- func (d *Datetime) MarshalText() ([]byte, error)
- func (d *Datetime) Scan(src any) error
- func (d *Datetime) String() string
- func (d *Datetime) TimeValue() *time.Time
- func (d *Datetime) UTC() *Datetime
- func (d *Datetime) UnmarshalBSON(bytes []byte) error
- func (d *Datetime) UnmarshalText(text []byte) error
- type Map
Constants ¶
View Source
const ( UtcLocation = "UTC" DateLayout = "2006-01-02" DateTimeLayout = "2006-01-02 15:04:05" DateTimeWithNumericZone = "2006-01-02 15:04:05 -0700" DateTimeWithNumericAndUtcZone = "2006-01-02 15:04:05 -0700 MST" DateDisplay = "Monday, 02 Jan 2006" DateTimeDisplay = "Monday, 02 Jan 2006 15:04:05" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool bool
func (*Bool) Boolean ¶
Boolean returns the built-in bool value of the Bool type. This is only advised to be used within if statements where required
type Date ¶
func (*Date) MarshalJSON ¶
func (*Date) MarshalText ¶
func (*Date) UnmarshalBSON ¶
func (*Date) UnmarshalText ¶
type Datetime ¶
func (*Datetime) MarshalBSON ¶
func (*Datetime) MarshalBSONValue ¶
func (*Datetime) MarshalJSON ¶
func (*Datetime) MarshalText ¶
func (*Datetime) UnmarshalBSON ¶
func (*Datetime) UnmarshalText ¶
type Map ¶
type Map[T, V comparable] map[T]V
Click to show internal directories.
Click to hide internal directories.