Documentation ¶
Overview ¶
Package rules provides Bazel rule generation for Go build targets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortLabels ¶ added in v0.5.1
SortLabels sorts lists of strings in "srcs" and "deps" attributes of Go rules using the same order as buildifier. Buildifier also sorts string lists, but not those involved with "select" expressions. TODO(jayconrod): remove this when bazelbuild/buildtools#122 is fixed.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator generates Bazel build rules for Go build targets.
func NewGenerator ¶
NewGenerator returns a new instance of Generator. "oldFile" is the existing build file. May be nil.
Click to show internal directories.
Click to hide internal directories.