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

cmd/vet: "Println call ends with newline" even when newline is escaped #22613

Closed
sabey opened this issue Nov 7, 2017 · 2 comments
Closed

cmd/vet: "Println call ends with newline" even when newline is escaped #22613

sabey opened this issue Nov 7, 2017 · 2 comments
Milestone

Comments

@sabey
Copy link

sabey commented Nov 7, 2017

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

@mvdan mvdan self-assigned this Nov 7, 2017
@mvdan mvdan added this to the Go1.10 milestone Nov 7, 2017
@mvdan
Copy link
Member

mvdan commented Nov 7, 2017

Thanks for the simple example to reproduce this.

@mvdan mvdan changed the title cmd/vet: Println call ends with newline cmd/vet: "Println call ends with newline" even when newline is escaped Nov 7, 2017
@gopherbot
Copy link

Change https://golang.org/cl/76194 mentions this issue: cmd/vet: don't warn on escaped newlines in Println

@golang golang locked and limited conversation to collaborators Nov 10, 2018
@rsc rsc unassigned mvdan Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants