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

Comments

Projects
None yet
3 participants
@sabey
Copy link

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

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link

commented Nov 7, 2017

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

@gopherbot gopherbot closed this in 366681c Nov 10, 2017

@golang golang locked and limited conversation to collaborators Nov 10, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.