golang-github-bep-clocks 0.5.0-2 source package in Ubuntu
Changelog
golang-github-bep-clocks (0.5.0-2) unstable; urgency=medium * Source-only upload for migration to testing -- Anthony Fok <email address hidden> Mon, 09 Oct 2023 08:39:18 -0600
Upload details
- Uploaded by:
- Debian Go Packaging Team
- Uploaded to:
- Sid
- Original maintainer:
- Debian Go Packaging Team
- Architectures:
- all
- Section:
- misc
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section | |
---|---|---|---|---|
Oracular | release | universe | misc | |
Noble | release | universe | misc |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
golang-github-bep-clocks_0.5.0-2.dsc | 2.3 KiB | 67faa76bf5500e648551dd7602e0e17807b8faf15ec7cd0101a96810c297f518 |
golang-github-bep-clocks_0.5.0.orig.tar.gz | 4.4 KiB | 532d6e152bc1c031a9e8d7bf3236ca59891ef1a0d0ad61b84103b36c89241304 |
golang-github-bep-clocks_0.5.0-2.debian.tar.xz | 2.6 KiB | 5947fc59d16a6c39ec14f28f3414e0320de5927f5c98700ea9f8416f8eda904a |
Available diffs
- diff from 0.5.0-1 to 0.5.0-2 (331 bytes)
No changes file available.
Binary packages built by this source
- golang-github-bep-clocks-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>.