This week we covered the commonly used static analysis tools. After watching David's lecture, I feel lucky and happy that I chose to learn some Golang language while taking this course. Go has made things much easier and reduced unnecessary conflicts by forcing users to follow only one rule of formatting. It's meaningless to fight for which kind of indentation we should take, or if the curly braces should take another line or not.
For the formatting, actually, there is no need for me or any contributor to do manual formatting with Go, since Go would save the code to its pre-defined format. The following command can help to format the code too:
gofmt -w filename.go
I chose Golint for the linter, and the user can execute the below command to force checking:
golint filename.go
For the IDE Integration, I used VS Code, and the file setting.json under .vscode has been updated automatically after changing the setting of the extension.
Top comments (0)