Balík: golang-github-bep-clocks-dev (0.5.0-2)
Odkazy pre golang-github-bep-clocks-dev
Zdroje Debian:
Stiahnuť zdrojový balík golang-github-bep-clocks:
- [golang-github-bep-clocks_0.5.0-2.dsc]
- [golang-github-bep-clocks_0.5.0.orig.tar.gz]
- [golang-github-bep-clocks_0.5.0-2.debian.tar.xz]
Správcovia:
Externé zdroje:
- Domovská stránka [github.com]
Podobné balíky:
- golang-github-facebookgo-clock-dev
- glymur-bin
- getmail
- golang-github-containers-image-dev
- golang-github-yuin-goldmark-dev
- golang-github-gogo-status-dev
- golang-github-andreykaipov-goobs-dev
- golang-github-dnephin-cobra-dev
- golang-github-azure-go-autorest-dev
- golang-github-allegro-bigcache-dev
- glgrib-shaders
Golang clock that allows you to set the start time (Go library)
This package provides a *ticking clock* that allows you to set the start time. It also provides a system clock, both implementing this interface:
// Clock provides a subset of methods in time.Time type Clock interface { Now() time.Time Since(t time.Time) time.Duration Until(t time.Time) time.Duration
// Offset returns the offset of this clock relative to the system clock Offset() time.Duration }
Note that this only support a subset of all the methods in time.Time (see above) and is by design very simple. For a more advanced time mocking library, have a look at <https://github.com/benbjohnson/clock>.
Stiahnuť golang-github-bep-clocks-dev
Architektúra | Veľkosť balíka | Nainštalovaná veľkosť | Súbory |
---|---|---|---|
all | 5.1 kB | 23.0 kB | [zoznam súborov] |