upon save gosublime will NOT format the code, and i tested with gofmt it doesn't complain, but with goimports it will complain that .go:1::warning: file is not goimported (goimports)
then i run the goimports -w path_to_above_source_file.go, and find out it is complaining the expect: []string{}, line, and it formats it to:
when i have code like this:
upon save gosublime will NOT format the code, and i tested with
gofmt
it doesn't complain, but withgoimports
it will complain that.go:1::warning: file is not goimported (goimports)
then i run the
goimports -w path_to_above_source_file.go
, and find out it is complaining theexpect: []string{},
line, and it formats it to:looks
gofmt
andgoimports
conflict with each other?