Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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