We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The documentation (both for 1.6 at https://golang.org/cmd/go/ and for tip at https://tip.golang.org/cmd/go/) for go test says that
go test
'Go test' recompiles each package along with any files with names matching the file pattern "*_test.go".
However the documentation for go build doesn't say anything about _test.go files.
go build
_test.go
I think the documentation for go build and go install should be updated to mention that _test.go files are ignored.
go install
While most users probably do not read the documentation carefully it is still useful to have something to refer new users to. See the following StackOverflow question for background: http://stackoverflow.com/questions/36638149/undefined-variables-within-a-package-during-build
The text was updated successfully, but these errors were encountered:
CL https://golang.org/cl/22180 mentions this issue.
Sorry, something went wrong.
135572e
No branches or pull requests
The documentation (both for 1.6 at https://golang.org/cmd/go/ and for tip at https://tip.golang.org/cmd/go/) for
go test
says thatHowever the documentation for
go build
doesn't say anything about_test.go
files.I think the documentation for
go build
andgo install
should be updated to mention that_test.go
files are ignored.While most users probably do not read the documentation carefully it is still useful to have something to refer new users to. See the following StackOverflow question for background: http://stackoverflow.com/questions/36638149/undefined-variables-within-a-package-during-build
The text was updated successfully, but these errors were encountered: