всички настройки
trixie  ] [  sid  ]
[ Източник: golang-github-bep-clocks  ]

Пакет: golang-github-bep-clocks-dev (0.5.0-2)

Връзки за golang-github-bep-clocks-dev

Screenshot

Ресурси за Debian:

Изтегляне на пакет-източник golang-github-bep-clocks.

Отговорници:

Външни препратки:

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

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-clocks-dev

Изтегляне за всички налични архитектури
Архитектура Големина на пакета Големина след инсталиране Файлове
all 5,1 кБ23,0 кБ [списък на файловете]