all: add a go directive, set it to 1.18

Done with:

go get go@1.18 toolchain@none
go mod tidy
go fix ./...

Using go1.21.3.

Otherwise the module is considered to have an implicit go 1.16 line.
While here, drop the by-now-always-satisfied go1.7 build constraint.

For golang/go#60268.

Change-Id: Ie0216c6f22c5e25321042e1b7bdaa59f3c3ae843
Reviewed-on: https://go-review.googlesource.com/c/time/+/534243
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2 files changed
tree: 5d420f61982a686ede19eb102f3470a95e921b94
  1. rate/
  2. CONTRIBUTING.md
  3. go.mod
  4. LICENSE
  5. PATENTS
  6. README.md
README.md

Go Time

Go Reference

This repository provides supplementary Go time packages.

Download/Install

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.

Report Issues / Send Patches

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.