3 ms·
I think parameterized packages are a great idea. It would be a light-weight way of getting just a bit of generic code into go. I made gotemplate to explore th
by nickcw 8y ago
I think parameterized packages are a great idea. It would be a light-weight way of getting just a bit of generic code into go.
I made gotemplate to explore that idea
https://github.com/ncw/gotemplate https://github.com/ncw/gotemplate
This requires a round of `go generate` for the actual code generation, but otherwise quite a similar experience.
Having it built in would be great!