neda1985 / search

0 stars 1 forks source link

ALWAYS format your code #5

Closed fzerorubigd closed 4 years ago

fzerorubigd commented 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 :

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

and then goimports -w ./main.go

neda1985 commented 4 years ago

done

fzerorubigd commented 4 years ago

Cool!