You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
Run the code below through gofmt: gofmt -w test.go
What is the expected output?
package main
type T struct {
V string
}
func main() {
_ = T {
`some test string spanning one line`,
}
_ = T {
`some test string spanning
multiple lines`,
}
}
What do you see instead?
package main
type T struct {
V string
}
func main() {
_ = T {
`some test string spanning one line`,
}
_ = T {
`some test string spanning
multiple lines`,
}
}
Which compiler are you using (5g, 6g, 8g, gccgo)?
6g
Which operating system are you using?
64 bit linux
Which revision are you using? (hg identify)
3b4e9c85b643 weekly/weekly.2011-03-15
The text was updated successfully, but these errors were encountered:
It's worth noting that the multiline string rules in Go
are different than in Python. The current formatting
makes it clear that the first line has no leading spaces
while the second one does.
by jimteeuwen:
The text was updated successfully, but these errors were encountered: