Documentation ¶
Overview ¶
Package generator provides core functionality of BUILD file generation in gazelle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator generates BUILD files for a Go repository.
func New ¶
func New(repoRoot, goPrefix, buildFileName, buildTags string, external rules.ExternalResolver) (*Generator, error)
New returns a new Generator which is responsible for a Go repository.
"repoRoot" is a path to the root directory of the repository. "goPrefix" is the go_prefix corresponding to the repository root directory. See also https://github.com/bazelbuild/rules_go#go_prefix. "buildFileName" is the name of the BUILD file (BUILD or BUILD.bazel). "buildTags" is a comma-delimited set of build tags to set in the build context. "external" is how external packages should be resolved.
Click to show internal directories.
Click to hide internal directories.