Fifth beta - adding support for go run command.
Golang Build: add the Run variant to the build system

This change alters how the go subprocess is killed to ensure that
the temporary binary executed during "go run" is also killed so
that users can cancel the Run variant like the other variants.

Additionally, there is support for a file path to the run variant
so that users can create a project setting that specifies the file
to always pass to "go run". The file path may be relative to
$GOPATH/src/, for multi-user or cross-platform development.
The relative file path functionality supports multiple entries in
$GOPATH.

Change-Id: I7cf3b3e9ff89665ea0cd776fe6facb164575fecb
Reviewed-on: https://go-review.googlesource.com/16441
Reviewed-by: Glenn Lewis <gmlewis@google.com>
Reviewed-by: Jason Buberel <jbuberel@google.com>
12 files changed
tree: 8b2af61a1c147677569fc774de88f2d5f3d411ce
  1. dev/
  2. docs/
  3. .gitignore
  4. .pep8
  5. AUTHORS
  6. changelog.md
  7. CONTRIBUTING.md
  8. CONTRIBUTORS
  9. Default.sublime-commands
  10. dependencies.json
  11. Go.sublime-build
  12. Golang Build Output.tmLanguage
  13. golang_build.py
  14. LICENSE
  15. PATENTS
  16. readme.md
readme.md

Golang Build

Golang Build is a Sublime Text package for compiling Go projects. It provides integration between Sublime Text and the command line go tool.

The package consists of the following features:

  • A Sublime Text build system for executing:
    • go build
    • go run
    • go install
    • go test
    • go clean
    • Cross-compilation using go build with GOOS and GOARCH
  • Sublime Text command palette commands to:
    • Execute go get
    • Open a terminal into a Go workspace

Installation

The Golang Build package is installed by using Package Control.

  • If Package Control is not installed, follow the Installation Instructions
  • Open the Sublime Text command palette and run the Package Control: Install Package command
  • Type Golang Build and select the package to perform the installation

Documentation

End User

Contributor