Documentation ¶
Overview ¶
TODO the logic into go text templates
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormatFile ¶
func (FormatFile) FormatFile ¶
func (f FormatFile) FormatFile(filePath string) error
type GenIterFormatting ¶
type GenIterFormatting struct {
// contains filtered or unexported fields
}
func WithFormatting ¶
func WithFormatting(decorated app.IterGenerator) GenIterFormatting
WithFormatting decorates app.IterGenerator with formatting logic.
func (GenIterFormatting) GenerateIter ¶
func (f GenIterFormatting) GenerateIter(packagePath string, ctx app.GenerateIterContext) ([]string, error)
GenerateIter should generate code using path to package and context.
Click to show internal directories.
Click to hide internal directories.