Goreuse: Generic Code for Go
github.com
Goreuse: Generic Code for Go
1–4 of 4 posts
Re: Goreuse: Generic Code for Go
#2goreuse takes Go, modifies the AST by replacing those parts that are needed to be customized and generates a Go source that is specialized for concrete types. It is "go generate" compatible.
Re: Goreuse: Generic Code for Go
#3goreuse takes Go, modifies the AST by replacing those parts that are needed to be customized and generates a Go source that is specialized for concrete types. It is "go generate" compatible.
So it basically just monomorphises?
Re: Goreuse: Generic Code for Go
#4goreuse takes Go, modifies the AST by replacing those parts that are needed to be customized and generates a Go source that is specialized for concrete types. It is "go generate" compatible.
So it basically just monomorphises?
Mostly. But since it is possible to replace/redefine the functions and methods too, it's a bit more capable than that and one can "override" methods or redefine functions.