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?
to your account
And has been ever since it was introduced in 2013 by @rsc. The godoc says:
// If returnImports is true and name denotes a Go program, matchFile reads
// until the end of the imports (and returns that data) even though it only
// considers text until the first non-comment.
Should the method actually use the bool parameter, or should it be removed from the signature and godoc? The func is currently called called with both true and false.
Found by https://github.com/mvdan/unparam.
The text was updated successfully, but these errors were encountered:
You can delete the parameter. The code uses the file suffix instead, which is a better source of truth.
Sorry, something went wrong.
CL https://golang.org/cl/38265 mentions this issue.
No branches or pull requests