Hello, I was wondering if there was an easy way to merge package files into a single one, like the bundle <https://github.com/golang/tools/tree/master/cmd/bundle>tool does but as a library. My goal is to take a package, transform some of its types (change their name) and output a file which contains all the package code and the modified types. This is to enable some kind of code generator from a well defined and tested package but using different types for the input.
I have also looked at go/ast.MergePackageFiles <https://godoc.org/go/ast#MergePackageFiles>, astutil <https://godoc.org/golang.org/x/tools/go/ast/astutil> and the new packages <https://godoc.org/golang.org/x/tools/go/packages>package but cannot find an easy way of doing so. Any help appreciated! Pierre -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/23b95d8d-8ecf-4f33-a643-c89c369731e6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.