sqs / goreturns

A gofmt/goimports-like tool for Go programmers that fills in Go return statements with zero values to match the func return types
Other
530 stars 55 forks source link

Package Gets Imported Unnecessarily #41

Open dc0d opened 6 years ago

dc0d commented 6 years ago

There is this package-level log variable. Package compiles. Even though goreturns keeps adding an import from some log packages that it finds.

Go 1.9.2 Ubuntu 16.04 VSCode (Updated)

I had to fall back to gofmt for VSCode. I can not reproduce it easily (a big project with big directory hierarchy).

seagle0128 commented 6 years ago

Me too. goreturns doesn't work well on my macOS. Have to back to goimports.