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 (*File) Content ¶
Content returns the formatted Go source of the file.
func (*File) Import ¶
Import includes the provided import path in the file's imports and returns a package identifier.
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.