Install golint by entering the following commands in the terminal:
sudo apt update sudo apt install golint
Description:
Linter for Go source code
Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes. . Golint differs from govet. Govet is concerned with correctness, whereas golint is concerned with coding style. Golint is in use at Google, and it seeks to match the accepted style of the open source Go project.
Homepage: https://github.com/golang/lint
Version: 0.0+git20161013.3390df4-1
Section: universe/devel