Go
To index Go we use SourceGraph's LSIF indexer for Go. LSIF is a new format for tools to share information about code. Binary releases of lsif-go are available ffor x86 Linux which will work as Glean indexers. The LSIF indexer uses a recent (>1.15) version of Go.
Run the indexerβ
Ensure that you have built and installed Glean and
the glean executable is on your PATH.
Index your Go repository with:
glean index go DIR --db-root DB --db NAME/INSTANCE
where
DBis the directory where you want to store your Glean DBsDIRis the root directory containing the Go projectNAME/INSTANCEis the name of the repository to create
In the shellβ
Go source can also be indexed directly from the Glean shell:
:index go DIR
The shell will pick a DB name and hash for you based on DIR.
Schemaβ
The schema is in glean/schema/source/lsif.angle