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

bcmills opened this issue May 12, 2021 · 1 comment


Copy link

@bcmills bcmills commented May 12, 2021 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].

Copy link

@gopherbot gopherbot commented Jun 10, 2021

Change 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
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants