[ trixie ]
[ sid ]
[ Källkod: golang-github-bep-clocks ]
Paket: golang-github-bep-clocks-dev (0.5.0-2)
Länkar för golang-github-bep-clocks-dev
Debianresurser:
Hämta källkodspaketet 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]
Ansvariga:
Externa resurser:
- Hemsida [github.com]
Liknande paket:
- golang-github-mostynb-go-grpc-compression-dev
- golang-github-facebookgo-clock-dev
- golang-github-bep-mclib-dev
- golang-github-aymerick-douceur-dev
- golang-github-dpotapov-go-spnego-dev
- golang-gopkg-h2non-gock.v1-dev
- golang-github-hodgesds-perf-utils-dev
- golang-github-buengese-sgzip-dev
- golang-github-dnephin-cobra-dev
- golang-github-azure-go-autorest-dev
- golang-github-bep-godartsass-dev
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>.
Hämta golang-github-bep-clocks-dev
Arkitektur | Paketstorlek | Installerad storlek | Filer |
---|---|---|---|
all | 5,1 kbyte | 23,0 kbyte | [filförteckning] |