Documentation ¶
Index ¶
Constants ¶
View Source
const (
// FileWriterExtension is the extension to write files of.
FileWriterExtension = ".go"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileWriter ¶
type FileWriter struct {
// contains filtered or unexported fields
}
FileWriter is a writer that writes to a file given by the path and the table name.
func NewFileWriter ¶
func NewFileWriter(path string) *FileWriter
NewFileWriter constructs a new FileWriter.
type FormatDecorator ¶
type FormatDecorator struct{}
FormatDecorator applies a formatting decoration to the given content.
type ImportDecorator ¶
type ImportDecorator struct{}
ImportDecorator removes empty import statements from the given content.
Click to show internal directories.
Click to hide internal directories.