aboutsummaryrefslogtreecommitdiff
path: root/internal/stdlib/stdlib.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2022-04-11 13:12:03 -0400
committerGopher Robot <gobot@golang.org>2022-04-11 21:55:57 +0000
commit8ea409f829091208d2d0ba4d81ecbe83b0fee9bb (patch)
tree0c0d0f5d753b722533b3bba32e3e23d4aa3059cd /internal/stdlib/stdlib.go
parent7ca74fe938640d7c9e378dc8e5821b58313cdd68 (diff)
downloadgo-x-pkgsite-8ea409f829091208d2d0ba4d81ecbe83b0fee9bb.tar.xz
all: gofmt
Gofmt to update doc comments to the new formatting. For golang/go#51082. Change-Id: Ia9e71e7ecac75822ff43d6c7e60f512442a5fa50 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/399617 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Auto-Submit: Russ Cox <rsc@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'internal/stdlib/stdlib.go')
-rw-r--r--internal/stdlib/stdlib.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/internal/stdlib/stdlib.go b/internal/stdlib/stdlib.go
index 654773ab..cf0d155f 100644
--- a/internal/stdlib/stdlib.go
+++ b/internal/stdlib/stdlib.go
@@ -63,12 +63,13 @@ var SupportedBranches = map[string]bool{
// tag doesn't correspond to a Go release or beta tag. In special cases,
// when the tag specified is either `latest` or `master` it will return the tag.
// Examples:
-// "go1" => "v1.0.0"
-// "go1.2" => "v1.2.0"
-// "go1.13beta1" => "v1.13.0-beta.1"
-// "go1.9rc2" => "v1.9.0-rc.2"
-// "latest" => "latest"
-// "master" => "master"
+//
+// "go1" => "v1.0.0"
+// "go1.2" => "v1.2.0"
+// "go1.13beta1" => "v1.13.0-beta.1"
+// "go1.9rc2" => "v1.9.0-rc.2"
+// "latest" => "latest"
+// "master" => "master"
func VersionForTag(tag string) string {
// Special cases for go1.
if tag == "go1" {
@@ -212,7 +213,8 @@ func swapGoRepo(gr goRepo) goRepo {
// WithTestData arranges for this package to use a testing version of the Go repo.
// The returned function restores the previous state. Use with defer:
-// defer WithTestData()()
+//
+// defer WithTestData()()
func WithTestData() func() {
return withGoRepo(&testGoRepo{})
}