all options
bullseye-backports  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Source: golang-github-bep-clock  ]

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

Links for golang-github-bep-clock-dev

Screenshot

Debian Resources:

Download Source Package golang-github-bep-clock:

Maintainers:

External Resources:

Similar packages:

Golangur til at angive starttidspunktet - Go-bibliotek

Denne pakke tilbyder et *tikkende ur*, til at angive starttidspunktet. Pakken tilbyder også et systemur, der begge implementerer denne grænseflade:

  // 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
  }

Bemærk at der kun understøttes et undersæt af alle metoderne i time.Time (se ovenfor) og er per design meget simpel. For et mere avanceret time mocking-bibliotek, tag et kig på <https://github.com/benbjohnson/clock>.

Other Packages Related to golang-github-bep-clock-dev

  • depends
  • recommends
  • suggests
  • enhances

Download golang-github-bep-clock-dev

Download for all available architectures
Architecture Package Size Installed Size Files
all 4.6 kB22.0 kB [list of files]