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

Go​Feather

by frou ST2/ST3 Removed

Sublime Text Package

Details

Installs

  • Total 488
  • Win 202
  • OS X 188
  • Linux 98
Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2
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 0 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 1 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.