Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Environment ¶
type Environment struct { YMLPath string // The .yml file path used as a configuration file. Output bool // Whether to print the generated code to stdout. Write bool // Whether to write the generated code to a file. DisableMatcher bool // Whether to disable the matcher. }
Environment represents the copygen environment.
func (*Environment) Run ¶
func (e *Environment) Run() (string, error)
Run runs copygen programmatically using the given Environment's YMLPath.
Directories
¶
Path | Synopsis |
---|---|
Package config loads configuration data from an external file.
|
Package config loads configuration data from an external file. |
Package generator generates code.
|
Package generator generates code. |
interpreter
Package interpreter interprets template code at runtime.
|
Package interpreter interprets template code at runtime. |
interpreter/extract
Package extract uses the `yaegi extract` tool in order to generate the reflect.Value symbols of internal types.
|
Package extract uses the `yaegi extract` tool in order to generate the reflect.Value symbols of internal types. |
template
Package template provides a template used by copygen to generate custom code.
|
Package template provides a template used by copygen to generate custom code. |
Package matcher matches fields.
|
Package matcher matches fields. |
Package models defines the domain models that model field relations and manipulation.
|
Package models defines the domain models that model field relations and manipulation. |
Package parser parses a setup file's functions, types, and fields using an Abstract Syntax Tree.
|
Package parser parses a setup file's functions, types, and fields using an Abstract Syntax Tree. |
options
Package options parses function comments and sets them to fields.
|
Package options parses function comments and sets them to fields. |
Click to show internal directories.
Click to hide internal directories.