Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdaptModel ¶
func AdaptModel(models ast.ModelMap, definitions Definitions) ast.ModelMap
Types ¶
type Definitions ¶
type DefinitionsMap ¶
type GenerateConfig ¶
type GenerateConfig struct { Name string `json:"name" yaml:"name"` Template string `json:"template,omitempty" yaml:"template,omitempty"` Output string `json:"output" yaml:"output"` Ignore string `json:"ignore" yaml:"ignore"` From string `json:"from" yaml:"from"` Types map[string]string `json:"types" yaml:"types"` Helpers map[string]string `json:"helpers" yaml:"helpers"` }
func (GenerateConfig) ApplyDefinitions ¶
func (g GenerateConfig) ApplyDefinitions(definitions DefinitionsMap) GenerateConfig
type OutputFile ¶
func Generate ¶
func Generate(root *ast.RootNode, config GenerateConfig, verbose bool) ([]OutputFile, error)
type TemplateContext ¶ added in v1.1.2
Click to show internal directories.
Click to hide internal directories.