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
go version
go version go1.9.2 linux/amd64
yes
go env
ubuntu amd64
fmt.Println("\\n") go vet
fmt.Println("\\n")
I expect \ to be seen as escaped
\n is seen as not escaped
The text was updated successfully, but these errors were encountered:
Thanks for the simple example to reproduce this.
Sorry, something went wrong.
Change https://golang.org/cl/76194 mentions this issue: cmd/vet: don't warn on escaped newlines in Println
cmd/vet: don't warn on escaped newlines in Println
366681c
No branches or pull requests
What version of Go are you using (
go version
)?go version go1.9.2 linux/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?ubuntu amd64
What did you do?
fmt.Println("\\n")
go vet
What did you expect to see?
I expect \ to be seen as escaped
What did you see instead?
\n is seen as not escaped
The text was updated successfully, but these errors were encountered: