toutes les options
bullseye-backports  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Paquet source : golang-github-bep-clock  ]

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

Liens pour golang-github-bep-clock-dev

Screenshot

Ressources Debian :

Télécharger le paquet source golang-github-bep-clock :

Responsables :

Ressources externes :

Paquets similaires :

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

Autres paquets associés à golang-github-bep-clock-dev

  • dépendances
  • recommandations
  • suggestions
  • enhances

Télécharger golang-github-bep-clock-dev

Télécharger pour toutes les architectures proposées
Architecture Taille du paquet Espace occupé une fois installé Fichiers
all 4,6 ko22,0 ko [liste des fichiers]