metagen_go/README.md

312 B

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