This package provides the following services:
linter-golinter
This plugin for Linter provides an interface to the
golint tool. It will be used
with files that have the Go syntax.
Prerequisites
-
Install Go for your system.
-
Install
golintper the instructions at its repo.
Installation
$ apm install linter-golinter
Settings
You can configure linter-golinter inside the Atom settings menu or by editing
your ~/.atom/config.cson file (choose Open Your Config in Atom menu):
"linter-golinter":
"executablePath": "golint" # Path to golint executable.
Tip:
Add your
GOPATHbinaries directory to yourPATH. If you installedGoto the default location, you can use this shell command to add it to your.bashrcfile:printf "\nexport PATH=\$PATH:\$HOME/go/bin\n" >> $HOME/.bashrcThis should prevent needing to set the
golintexecutable path.
If the default path resolution of just golint is not working for you, you
can try using the command which golint on UNIX / macOS or where.exe golint on
Windows in a terminal / command prompt to print the path to your golint
installation. In most cases it should be $GOPATH/bin/golint.