Hacker News new | past | comments | ask | show | jobs | submit login

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

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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: