Documentation ¶
Index ¶
- type Time
- func (t Time) GetDuration() (time.Duration, bool)
- func (t Time) MarshalText() ([]byte, error)
- func (t *Time) Scan(value interface{}) error
- func (t *Time) SetDuration(d time.Duration) error
- func (t Time) String() string
- func (t *Time) UnmarshalText(text []byte) error
- func (t Time) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Time ¶
type Time struct {
// contains filtered or unexported fields
}
Time represents a custom type for handling MySQL TIME data.
func (Time) GetDuration ¶
GetDuration returns the time.Duration and a boolean indicating if the value is valid.
func (Time) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Time) SetDuration ¶
SetDuration sets the Time based on a time.Duration.
func (*Time) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.