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

sourcegraph/go-pkgs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Finds all packages in all of the GOPATH trees (library functionality similar to `go list all`)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages