все параметры
bullseye-backports  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Источник: golang-github-bep-clock  ]

Пакет: golang-github-bep-clock-dev (0.3.0-2)

Ссылки для golang-github-bep-clock-dev

Screenshot

Ресурсы Debian:

Исходный код golang-github-bep-clock:

Сопровождающие:

Внешние ресурсы:

Подобные пакеты:

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

Другие пакеты, относящиеся к golang-github-bep-clock-dev

  • зависимости
  • рекомендации
  • предложения
  • enhances

Загрузка golang-github-bep-clock-dev

Загрузить для всех доступных архитектур
Архитектура Размер пакета В установленном виде Файлы
all 4,6 Кб22,0 Кб [список файлов]