golint
Linter for Go source code
Install
- All systems
-
curl cmd.cat/golint.sh
- Debian
-
apt-get install golint
- Ubuntu
-
apt-get install golint
- Kali Linux
-
apt-get install golint
- Fedora
-
dnf install golint
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install golint
- Raspbian
-
apt-get install golint
- Dockerfile
- dockerfile.run/golint
golint
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.