Or just change how gofmt formats if statements where the block is a single
return statement.
if r, err := os.Open( "blah.text"); err != nil { return nil, err }
Or if parseable:
return r, err if { r, err := os.Open( "blah.txt" ) ; err != nil }
I think the first is better, but I'm happy with Go as it is.
Jonathan
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.