github.com/pierrec/packagen (go): Package packagen generate Go source code from source package(s). It is largely inspired by https://github.com/golang/tools/cmd/bundle.  Transformations can be applied to the resulting AST before outputting it.  Limitations: - no asm, no cgo, no build tags
Keywords: generics|go|golang