Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultBuilder is the default Builder. DefaultBuilder = Builder{} // Build is an alias for DefaultBuilder.Build. Build = DefaultBuilder.Build )
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is a builder for go code.
func NewBuilder ¶
func NewBuilder(opts BuilderOptions) *Builder
NewBuilder creates a new Builder with the given options.
type BuilderOptions ¶
type BuilderOptions struct {
// Dir is the working directory for the Builder.
Dir string
// Tidy can specify whether the builder should run `go mod tidy` before building.
Tidy bool
}
BuilderOptions are options to create a builder with.
Click to show internal directories.
Click to hide internal directories.