8 ms·
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.
by quibit 11y 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.
- Zikes 11y agoSimplicity 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 11y agoFrom 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 https://github.com/vrischmann/envconfig.