rochaporto / ezgliding

Website and software for analyzing, visualizing and planning gliding flights
GNU General Public License v3.0
5 stars 2 forks source link

add -s to goimports (as available in gofmt) #84

Open rochaporto opened 9 years ago

rochaporto commented 9 years ago

tracked here for simplicity, but the issue is in the vim usage (as goimports gets called on save).

issue is that goimports, which mainly adds import management to gofmt (and wraps the rest), is not exposing the -s flag: https://golang.org/cmd/gofmt/

looking around code seems to be here: https://github.com/golang/tools/blob/master/cmd/goimports/goimports.go

should be trivial to add.

discovered while trying this out. http://goreportcard.com/report/rochaporto/ezgliding