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

Go has reflection, but it doesn't have annotations or generics. Annotations are key for libraries such as hibernate.

Aren't `tags` akin to annotations?

No, Go tags are like metadata which can be accessed through reflection at runtime. Java annotations allow you to actually generate code during the build phase.

I've encountered a bunch of code generation in client-go - I'm not very good at Go, so not sure what the term for the code generation directives in comments is, if there is one.

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