metagen_go/README.md

14 lines
312 B
Markdown
Raw Normal View History

2022-12-08 19:02:33 +03:00
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()
]
)
);