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 following program:
package main import ( "fmt" "go/format" ) func main() { data := []byte("\ta()\n//line :1") data1, err := format.Source(data) if err != nil { return } _, err = format.Source(data1) if err != nil { fmt.Printf("orig: %q\n", data) fmt.Printf("new : %q\n", data1) panic(err) } }
outputs:
orig: "\ta()\n//line :1" new : "\ta() }\n\n//line"
} should not be added
go version devel +514014c Thu Jun 18 15:54:35 2015 +0200 linux/amd64
The text was updated successfully, but these errors were encountered:
I have a fix (kind of), but it is not pretty. Submitting it for review.
Sorry, something went wrong.
CL https://golang.org/cl/11282 mentions this issue.
c68f2f8
No branches or pull requests
The following program:
outputs:
} should not be added
go version devel +514014c Thu Jun 18 15:54:35 2015 +0200 linux/amd64
The text was updated successfully, but these errors were encountered: