utils

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳