Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go/build: “Build constraints” section of package comment should mention //go:build syntax #46124

Open
bcmills opened this issue May 12, 2021 · 1 comment

Comments

@bcmills
Copy link
Member

@bcmills bcmills commented May 12, 2021

https://tip.golang.org/pkg/go/build/#hdr-Build_Constraints currently says:

A build constraint, also known as a build tag, is a line comment that begins

// +build

Now that the //go:build syntax is recognized by the toolchain (#41184), we should be sure to update that documentation before the 1.17 release. It is currently the top Google search hit for [golang build constraint].

@gopherbot
Copy link

@gopherbot gopherbot commented Jun 10, 2021

Change https://golang.org/cl/326931 mentions this issue: cmd/go, go/build: update docs to use //go:build syntax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants