this post was submitted on 20 Mar 2024
18 points (87.5% liked)
Golang
2204 readers
1 users here now
This is a community dedicated to the go programming language.
Useful Links:
Rules:
- Posts must be relevant to Go
- No NSFW content
- No hate speech, bigotry, etc
- Try to keep discussions on topic
- No spam of tools/companies/advertisements
- It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I hate seeing data encoded into magic comments, struct tags included. One of my biggest gripes with Go is that I think they should have used a different symbol to distinguish important annotations from true comments.
Who uses struct tags for comments? I’ve never used or seen them used as anything except annotations as in
tag:"value"
. And linters (go vet?) will tell you if you’re formatting them wrong.I used the embed feature to embedd some files into the binary recently. It feels so hacked together.