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 LabelResolver ¶
type LabelResolver interface { // Resolve resolves a Go importpath "importpath", which is referenced from // a Go package directory "dir" in the current repository. // "dir" is a relative slash-delimited path from the top level of the // current repository. Resolve(importpath, dir string) (Label, error) }
A LabelResolver resolves a Go importpath into a label in Bazel.
func NewLabelResolver ¶
func NewLabelResolver(c *config.Config) LabelResolver
Click to show internal directories.
Click to hide internal directories.