Atom Packages Directory

a package directory for a text editor of the 21st Century

Linter Golinter

Install with:
    apm install linter-golinter
  

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

  1. Install Go for your system.

  2. Install golint per the instructions at its repo.

Installation

ShellSession $ 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):

CoffeeScript "linter-golinter": "executablePath": "golint" # Path to golint executable.

Tip:

Add your GOPATH binaries directory to your PATH. If you installed Go to the default location, you can use this shell command to add it to your .bashrc file:

bash printf "\nexport PATH=\$PATH:\$HOME/go/bin\n" >> $HOME/.bashrc

This should prevent needing to set the golint executable 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.

Keywords: go, golang, linter Suggest keywords
Fork me on GitHub