Documentation ¶
Index ¶
Constants ¶
View Source
const RootDir = ".forge"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string `yaml:"name"` Prompts []Prompt `yaml:"prompts"` InOuts []InOut `yaml:"mappings"` }
Config is the configuration for generating code.
type Generator ¶
type Generator struct { Config Config // contains filtered or unexported fields }
func NewGenerator ¶
NewGenerator returns a new Generator. It finds the codegen configuration file by name and marshals it into the Config struct.
func (*Generator) ParseInOuts ¶
ParseInOuts parses the input and output paths by the template execution.
Click to show internal directories.
Click to hide internal directories.