Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
cui fliter 55c6442011 all: gofmt format
Change-Id: I22ead42deebb9bb5146581f261a22e854517ceef
Reviewed-on: https://go-review.googlesource.com/c/dl/+/520578
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
2023-08-18 22:03:45 +00:00
Dmitri Shuralyov 294a5db026 all: switch to go install path@latest syntax in documentation
All supported versions of Go can download golang.org/dl/... commands
via the new go install path@latest syntax. Update their documentation
accordingly.

Also update the golang.org/dl/internal/genv generator template for
future commands that will be added when new Go releases are made.

Fixes golang/go#48080.

Change-Id: I0abf80e944322f3e30f7eb1b03b5d8d3be25554d
Reviewed-on: https://go-review.googlesource.com/c/dl/+/346091
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
2021-08-31 19:03:21 +00:00
Agniva De Sarker af982ab559 internal/genv: fix release notes link for minor versions
Also corrected the code in case of unrecognized version.

According to the docs, nil is returned when the regex does not match.
And in case of a partial or full match, the length of the slice
is always equal to the no. of subexpressions.
For the subexpressions that did not match, the string will be empty.

So the length check was logically wrong. It's just that since the length
of a nil slice is 0, it accidentally turned out to be correct.

Fixes golang/go#26976

Change-Id: Ic9e43d13877d747df20c15949436e355d2fd448d
Reviewed-on: https://go-review.googlesource.com/c/160920
Reviewed-by: Filippo Valsorda <filippo@golang.org>
2019-02-04 18:27:17 +00:00
Brad Fitzpatrick 1bf763e7e4 all: fix doc URLs, make consistent
By fixing the generator and:

$ go install ./internal/genv && (for X in $(find . -type d -name 'go*' | perl -npe "s/^..//" ); do genv $X; done)

Change-Id: I93b37ef1ba506047a978cf319a737dab2d542260
Reviewed-on: https://go-review.googlesource.com/130977
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-23 05:00:58 +00:00
Brad Fitzpatrick 44f93b8033 all: copy+update code from x/build/version/*
From x/build git rev a41435cbf9f.

Renames the "version" package to internal/version too.

Updates golang/go#23223

Change-Id: Idbcedeb5f3ac1f2afe527064be0d6ae8524a0358
Reviewed-on: https://go-review.googlesource.com/123677
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-07-12 20:41:42 +00:00