全部搜尋項
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 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 golang-github-bep-clock-dev

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 4。6 kB22。0 kB [檔案列表]