Go to file
Pavel Shevaev 130fc2a533 Fixing codegen syntax errors 2022-12-09 11:22:17 +03:00
src Fixing codegen syntax errors 2022-12-09 11:22:17 +03:00
tpl Fixing codegen syntax errors 2022-12-09 11:22:17 +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()
    ]
  )
);