Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File is a code generation file.
func NewMakefile ¶
func NewMakefile(cfg FileConfig) *File
func (*File) Import ¶
Import includes the provided import path in the file's imports and returns a package identifier.
func (*File) RawContent ¶ added in v0.63.1
RawContent returns the raw content of the file.
type FileConfig ¶
type FileConfig struct { // Filename of the generated file. Filename string // Package of the generated file. Package string // GeneratedBy line to print to the generated file. GeneratedBy string // BuildTag is an optional build tag to include in the file header. BuildTag string }
FileConfig configures a code generation file.
Click to show internal directories.
Click to hide internal directories.