From ac8954f9670bf6439421a1fda3266c3b1a6ccde2 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Thu, 8 Dec 2022 19:02:33 +0300 Subject: [PATCH] Adding README --- .gitignore | 1 + README.md | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6e92f57 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +tags diff --git a/README.md b/README.md new file mode 100644 index 0000000..800fe9b --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +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() + ] + ) + );