Documentation ¶ Index ¶ type Time func ParseTime(input string) (Time, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Time ¶ type Time struct { Days int Hours int Minutes int Seconds int } Time is func ParseTime ¶ func ParseTime(input string) (Time, error) ParseTime expects one of the following: '2d' = 2 days; '2h' 2 hours; '2m' = 2 minutes; '2s' = 2 seconds Number followed by d, h, m or s. Returned struct Time as an approximation of the input. Source Files ¶ View all Source files timeparse.go Click to show internal directories. Click to hide internal directories.