wszystkie opcje
bullseye-backports  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Pakiet źródłowy: golang-github-bep-clock  ]

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

Odnośniki dla golang-github-bep-clock-dev

Screenshot

Zasoby systemu Debian:

Pobieranie pakietu źródłowego golang-github-bep-clock:

Opiekunowie:

Zasoby zewnętrzne:

Podobne pakiety:

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

Inne pakiety związane z golang-github-bep-clock-dev

  • wymaga
  • poleca
  • sugeruje
  • enhances

Pobieranie golang-github-bep-clock-dev

Pobierz dla wszystkich dostępnych architektur
Architektura Rozmiar pakietu Rozmiar po instalacji Pliki
all 4,6 KiB22,0 KiB [lista plików]