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
$ goimports <<EOF
package main
import foo "fmt"
func main() { fmt.Println() }
EOF
Prints:
package main
func main() { fmt.Println() }
Low priority, as a second run corrects the import.
The text was updated successfully, but these errors were encountered:
I hit a similar issue today, probably related.
1) Navigate to http://play.golang.org/p/rNNcWaiqTN
2) Select "Imports"
3) Click "Format"
4) The resulting source code gives a compile time error when clicking "Run".
1) Navigate to http://play.golang.org/p/anpOWLa77k
2) Select "Imports"
3) Click "Format"
4) The resulting source code works just fine when clicking "Run".
josharian
changed the title
go.tools/imports: unused named import is mistaken for unnamed import
goimports: unused named import is mistaken for unnamed import
Apr 3, 2015
rsc
changed the title
goimports: unused named import is mistaken for unnamed import
x/tools/cmd/goimports: unused named import is mistaken for unnamed import
Apr 14, 2015
The text was updated successfully, but these errors were encountered: