Go to file
Pavel Merzlyakov 9eb9d71175 fix sql method generation for structs with pk fields only 2023-11-15 15:43:01 +03:00
src Adding convenience codegen(..) function 2023-11-14 23:26:29 +03:00
tpl fix sql method generation for structs with pk fields only 2023-11-15 15:43:01 +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 Bumping deps 2023-08-16 14:38:21 +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()
    ]
  )
);