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

A struct tag is just a string literal - according to the spec. The tags can only be accessed by reflect. The reflect api docs mention the convention. https://golang.org/pkg/reflect/#StructTag


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

Search: