Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator is responsible for generating validation files for the given in a go source file.
func New ¶
func New() *Generator
New is a constructor method for creating a new Generator with default templates loaded.
func (*Generator) GenerateFromPath ¶
GenerateFromPath is responsible for orchestrating the Code generation. It results in a byte array that can be written to any file desired. It has already had goimports run on the code before being returned.
Click to show internal directories.
Click to hide internal directories.