top | item 9923733

(no title)

quibit | 10 years ago

This should be handy for frameworks to do their own logic, but I would get very annoyed if I had to read code that was cluttered with tags.

discuss

order

Zikes|10 years ago

Simplicity and minimalism are core values in Go, both in the language itself and the community and developers that use it, so clutter tends not to be a concern.

That aside, tags are currently in use in several ORM frameworks with a fair amount of success.

Sphax|10 years ago

From experience you don't tend to see tags very often other than when decoding/encoding JSON. If you use an ORM maybe you use tags as well.

Other than that, their usage (at least to me after working with Go for a year now) is limited to things like Toml/YAML decoding for configuration, or (shameless plug) configuration with https://github.com/vrischmann/envconfig.