Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I'm not sure golang doesn't have annotations

It does, the `//go:` stricture is a pragma / annotation.

And though I don’t remember any being at the struct-definition level, Go 1.16 added one at the “const” (toplevel var) level so adding it for structs doesn’t seem like an issue.



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

Search: