Skip to content
This repository was archived by the owner on May 29, 2018. It is now read-only.

Latest commit

 

History

History
29 lines (20 loc) · 1.18 KB

README.md

File metadata and controls

29 lines (20 loc) · 1.18 KB

go-pkgs

xrefs funcs top func library users

Package pkgs finds all packages in all of the GOPATH trees. It is library functionality equivalent to go list all (see go help packages for more info).

Much of the code was adapted from the cmd/go matchPackages func.

Docs: go-pkgs on Sourcegraph

Installation

go get github.com/sourcegraph/go-pkgs

Example Usage

import (
    "github.com/sourcegraph/go-pkgs"
    "go/build
)

// List all packages in all GOPATH trees.
pkglist, err := pkgs.FindAll("", build.Default, 0)