Y
Hacker News
new
|
ask
|
show
|
jobs
by
arnehormann
3792 days ago
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