Closed fzerorubigd closed 4 years ago
Try using gofmt tool, or its better replacement goimports tool. The second one is my choice since it is like gofmt, but also organize the imports. gofmt comes with your go installation, but for goimports :
gofmt
goimports
go get golang.org/x/tools/cmd/goimports
and then goimports -w ./main.go
goimports -w ./main.go
done
Cool!
Try using
gofmt
tool, or its better replacementgoimports
tool. The second one is my choice since it is like gofmt, but also organize the imports. gofmt comes with your go installation, but for goimports :and then
goimports -w ./main.go