14 lines
312 B
Markdown
14 lines
312 B
Markdown
|
This package is used for code generation of Go meta structs using Twig templates
|
||
|
|
||
|
Usage example:
|
||
|
|
||
|
$twig = \metagen_go\get_twig();
|
||
|
file_put_contents('bundle.go',
|
||
|
$twig->render("codegen_bundle.twig",
|
||
|
[
|
||
|
'package' => 'autogen',
|
||
|
'meta' => get_meta()
|
||
|
]
|
||
|
)
|
||
|
);
|