commit | f3bd1da661afd6357b957af27c50ccdb248b7dd3 | [log] [tgz] |
---|---|---|
author | Sameer Ajmani <sameer@golang.org> | Fri Aug 12 22:59:54 2022 -0400 |
committer | Sameer Ajmani <sameer@golang.org> | Thu Sep 22 22:03:47 2022 +0000 |
tree | 27107565d23624db0b5c4421b283b2fad21c206b | |
parent | 2ce7c2934d457dc7ac7c81cce715653a999823ab [diff] |
rate: add TokenAt and Tokens methods to Limiter. Rename "now" to "t" in rate functions. Improve comments in package rate and its test. Fixes golang/go#50035 Change-Id: Icd84ce85d31ee8298b0814492f0856e1953923c8 Reviewed-on: https://go-review.googlesource.com/c/time/+/423042 Run-TryBot: Sameer Ajmani <sameer@golang.org> Reviewed-by: Russ Cox <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
This repository provides supplementary Go time packages.
The easiest way to install is to run go get -u golang.org/x/time
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/time
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/time:” in the subject line, so it is easy to find.