ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Go​Feather

by frou ST2/ST3 Removed

Sublime Text Package

Details

Installs

  • Total 487
  • Win 202
  • OS X 188
  • Linux 97
Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

GoFeather is a package to provide Go syntax support for Sublime Text.

It is an alternative to the stock package and differs in that it:

  • Targets the language as of its official stable release in 2012.
  • Keeps the scope taxonomy simpler.
  • Lets you run go build, go install, go test and go fmt without leaving Sublime. These appear in the Command Palette (search for “Build:”) and their keyboard shortcuts are configured in the per-platform sublime-keymap files.

For GoFeather to be picked up by Sublime, you must first add the stock package (“Go”) to the ignored_packages array in your settings file.


Note on Build Commands

For the Build Commands to work, Sublime's environment variables must include a PATH appropriate to find the go command and an existent GOPATH appropriate to find your packages. Since Sublime is a GUI app, these are not necessarily inherited from your shell profile. On OS X, for instance, I have had to create the file /etc/launchd.conf containing the following:

# Adds /usr/local/bin to what is the default PATH for GUI apps.
setenv PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

# Creates GOPATH for GUI apps.
setenv GOPATH /Users/frou/workspace/projects/go/

# Requires a reboot to be picked up for the first time.