Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportPathToBazelRepoName ¶
ImportPathToBazelRepoName converts a Go import path into a bazel repo name following the guidelines in http://bazel.io/docs/be/functions.html#workspace
Types ¶
type Labeler ¶ added in v0.5.4
type Labeler interface { LibraryLabel(rel string) Label TestLabel(rel string, isXTest bool) Label BinaryLabel(rel string) Label }
Labeler generates Bazel labels for rules, based on their locations within the repository.
func NewLabeler ¶ added in v0.5.4
type Resolver ¶ added in v0.5.4
type Resolver interface { // Resolve resolves a Go importpath "importpath" into a Label. "importpath" // must not be relative. The returned Label will never be relative. Resolve(importpath string) (Label, error) }
A Resolver resolves a Go importpath into a label in Bazel.
Click to show internal directories.
Click to hide internal directories.