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
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.9 darwin/amd64
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
What did you do?
run goimports -d .
It seems to not work as expected when there is a line with a comment
What did you expect to see?
Having in test.go
package main
var (
translationItemResponseChannel chan string
version string
environment string
countryCode string
// CacheControlMaxAge in minutes
CacheControlMaxAge int
anotherVarToFix string
)
goimports should fix it and align the types like this
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.9 darwin/amd64
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?What did you do?
run goimports -d .
It seems to not work as expected when there is a line with a comment
What did you expect to see?
Having in test.go
goimports should fix it and align the types like this
What did you see instead?
But if there is a commented line in between, weird things happen
The text was updated successfully, but these errors were encountered: