You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2023. It is now read-only.
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.
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.Sleeportime.Afterdoes not get used by accident.However, in many cases the
timepackage is required to usetime.Duration.It would be nice to have a type alias in the
clockpackage, so thatclock.Durationcould be used interchangeably.