The official Sublime Text package for Go build system integration.
Clone or download
Matt Jones and rsc Drop leading whitespace from file regex.
Tests prefix filenames with a tab, which sublime misinterprets
as part of the filename. We should ignore that.

Change-Id: Ied730dcdb2e9b33aeb544821be209cad8952e0aa
Reviewed-by: Russ Cox <>
Latest commit 1cba804 Feb 9, 2016

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 to run Tests or Benchmarks
    • 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


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


End User