Documentation ¶
Index ¶
Constants ¶
View Source
const ( DurS = iota // 0: second DurM // 1: minute DurH // 2: hour DurD // 3: day DurW // 4: week DurO // 5: month DurY // 6: year )
duration units
View Source
const TimeFormat = "2006-01-02 15:04:05"
TimeFormat is the underlying format of Time.String()[:19]
View Source
const TimeZero = "0000-01-01 00:00:00"
TimeZero is empty time
Variables ¶
View Source
var DurationZero = Duration([...]int{0, DurS})
DurationZero is the zero value for Duration
Functions ¶
Types ¶
type Array ¶
type Array []string
Array is a custom sql/driver type to handle list columns
type Duration ¶
type Duration [2]int
Duration is a custom sql/driver type to handle 3-state permissions
type Time ¶
Time is a custom sql/driver type to handle UTC times
func (Time) MarshalJSON ¶
MarshalJSON implements the json Marshal interface
Click to show internal directories.
Click to hide internal directories.