Intuitive annotation syntax, clean and fast command line tools, runtime-dependencies-free generated codes.
go install github.com/go-zing/gozz@latestGozz CLI is built with cobra, command syntax as follows:
gozz [--GLOBAL-FLAGS] [COMMAND] [--COMMAND-FLAGS] [ARGS]The main plugin execute command would be:
gozz run -p "[PLUGIN][:OPTIONS]" filenameAnnotations are comments that stick with declaration object, and match syntax as follows:
// +zz:[PLUGIN][:ARGS][:OPTIONS]
type T interface{}Check out here for more details.
Gozz provides a series of awesome builtin plugins.
Rather than Gozz provides these built-in plugins,
Actually in order to integrate these plugins,
we develop the toolkits named Gozz.
- Wire Autowire DI and AOP proxy。
- Api Generate API routing and invoker based on
interface。 - Impl Sync
interfaceandimplement。 - Doc Generate runtime documentation based on comments。
- Tag Manage structure field tags in templating。
- Orm Generates data entity mapping code。
- Option Generates
Funcitonal Optionscode。
We provide customizable generating templates,
gozz-core for code analysis,
edit and generate.
External .so plugins and official external supported also.
gozz install [--output/-o] [--filepath/-f] [repository]