Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Provide type alias for time.Duration #30

Closed
rojer9-fb opened this issue Apr 7, 2021 · 0 comments · Fixed by #36
Closed

Provide type alias for time.Duration #30

rojer9-fb opened this issue Apr 7, 2021 · 0 comments · Fixed by #36
Assignees

Comments

@rojer9-fb
Copy link

It would be nice to not have to import the "time" package at all.
It makes it easier, just by eyeballing the imports, to audit a package to ensure time.Sleep or time.After does not get used by accident.
However, in many cases the time package is required to use time.Duration.
It would be nice to have a type alias in the clock package, so that clock.Duration could be used interchangeably.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants