Go Toolchain

Installation

This toolchain is not a standalone program; it provides additional functionality to editor plugins and other applications that use srclib.

Browse the code at srclib-go and file issues on GitHub.

First, install the srclib program (see srclib installation instructions).

Then run:

# download and fetch dependencies
go get -v sourcegraph.com/sourcegraph/srclib-go
cd $GOPATH/sourcegraph.com/sourcegraph/srclib-go

# build the srclib-go program in .bin/srclib-go (this is currently required by srclib to discover the program)
make

# link this toolchain in your SRCLIBPATH (default ~/.srclib) to enable it
srclib toolchain add sourcegraph.com/sourcegraph/srclib-go

To verify that installation succeeded, run:

srclib toolchain list

You should see this srclib-go toolchain in the list.

Now that this toolchain is installed, any program that relies on srclib (such as editor plugins) will support Go.