Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindDestination ¶
FindDestination attempts to find a sensible destination file path. The file path is absolute.
func FormatAndWrite ¶
FormatAndWrite formats some generated Go source code (the input bs), and writes it to a file.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator is a type used to generate validation code.
func NewGenerator ¶
func NewGenerator(constraints map[string]valley.ConstraintGenerator) *Generator
NewGenerator returns a new Generator instance.
Click to show internal directories.
Click to hide internal directories.