Your version of goimports is too old and doesn't support vendoring. Please update goimports!
Go 初心者です。
思うところあって、 Go を試そうとしていました。随分前に emacs で Go の環境を整えてましたが、久し振りに go-mode にすると以下のエラーが出ました。
Your version of goimports is too old and doesn't support vendoring. Please update goimports! gofmt errors: flag provided but not defined: -srcdir usage: goimports [flags] [path ...] -d display diffs instead of rewriting files -e report all errors (not just the first 10 on different lines) -l list files whose formatting differs from goimport's -w write result to (source) file instead of stdout
goimports のアップデートが必要とのことでしたので、 go get しました。
$ go get golang.org/x/tools/cmd/goimports