Documentation ¶
Overview ¶
Package gen does code generation to automate tedious tasks.
Although you can use this package and its subpackages directly, that's not recommended. Instead, you should create a genfile.yaml for your package and use the gondola gen command to perform the code generation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Gen ¶
Gen generates code according to the given config file. If the config file can't be found or it can't be parsed, an error will be returned. Previously autogenerated files will be overwritten, but trying to overwrite any files which were not autogenerated will also return an error. See the package documentation for the format of the config file.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package genutil contains helper functions for autogenerating code.
|
Package genutil contains helper functions for autogenerating code. |
Package json generates methods for encoding/decoding types to/from JSON.
|
Package json generates methods for encoding/decoding types to/from JSON. |
Package strings generates the String() method for enumeration types.
|
Package strings generates the String() method for enumeration types. |
Click to show internal directories.
Click to hide internal directories.