全部搜索项
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 [文件列表]