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
Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12
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 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.