Given the following file:
# foo.go
package main
import (
_ "bar"
// foo has side effects.
_ "foo"
)
goimports will incorrectly associate the comment with "bar" instead of "foo", producing this file:
package main
import (
_ "bar" // foo has side effects.
_ "foo"
)
This is using the latest master of the tools repo (5e66757).