packages

package
v0.0.0-...-e0b1931 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package packages provides Go package traversal in a Bazel repository.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Walk

func Walk(bctx build.Context, root string, f WalkFunc) error

Walk walks through Go packages under the given dir. It calls back "f" for each package.

It is similar to "golang.org/x/tools/go/buildutil".ForEachPackage, but it does not assume the standard Go tree because Bazel rules_go uses go_prefix instead of the standard tree.

Types

type WalkFunc

type WalkFunc func(pkg *build.Package) error

A WalkFunc is a callback called by Walk for each package.

Jump to

Keyboard shortcuts

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