gotool

command
v0.0.58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2022 License: Apache-2.0, NCSA Imports: 16 Imported by: 0

README

golang-extractor image

Example usage

mkdir -p /tmp/workspace/gopath/src/golang.org/x

git clone https://go.googlesource.com/tools /tmp/workspace/gopath/src/golang.org/x/tools

docker run \
  -v /tmp/workspace:/workspace:z \
  -e KYTHE_CORPUS=golang.org/x/tools \
  -e GOPATH=/workspace/gopath \
  -e OUTPUT=/workspace/out \
  gcr.io/kythe-public/golang-extractor:latest \
  golang.org/x/tools

# inspect output kzip
kzip info --input /tmp/workspace/out/compilations.kzip | jq

Documentation

Overview

Binary gotool extracts Kythe compilation information for Go packages named by import path on the command line. The output compilations are written into a kzip.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL