Alle Optionen
bullseye-backports  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Quellcode: golang-github-bep-clock  ]

Paket: golang-github-bep-clock-dev (0.3.0-2)

Links für golang-github-bep-clock-dev

Screenshot

Debian-Ressourcen:

Quellcode-Paket golang-github-bep-clock herunterladen:

Betreuer:

Externe Ressourcen:

Ähnliche Pakete:

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>.

Andere Pakete mit Bezug zu golang-github-bep-clock-dev

  • hängt ab von
  • empfiehlt
  • schlägt vor
  • erweitert

golang-github-bep-clock-dev herunterladen

Download für alle verfügbaren Architekturen
Architektur Paketgröße Größe (installiert) Dateien
all 4,6 kB22,0 kB [Liste der Dateien]