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

Provide type alias for time.Duration #30

@rojer9-fb

Description

@rojer9-fb

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions