Go to file
Pavel Shevaev ed85853be4 Using newer metagen API 2022-12-08 19:21:43 +03:00
src Using newer metagen API 2022-12-08 19:21:43 +03:00
tpl Using newer metagen API 2022-12-08 19:21:43 +03:00
.gitignore Adding README 2022-12-08 19:02:33 +03:00
README.md Adding README 2022-12-08 19:02:33 +03:00
composer.json First commit 2022-12-08 11:40:55 +03:00

README.md

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()
    ]
  )
);