swanwish / blog

My blog website
0 stars 0 forks source link

format go file failed #47

Open swanwish opened 7 years ago

swanwish commented 7 years ago

Today, I use goimports format golang file, it always report error, and I find the problem is the goimports report error when execute, it was generated with early version of golang. After rebuild the goimports, it succeed.

go get golang.org/x/tools/cmd/goimports

Command goimports

swanwish commented 7 years ago

Install new plugin and it supports format go file when save.

Golang intelliJ plugin