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:

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] wyrmroot@programming.dev 9 points 8 months ago (2 children)

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.

[–] firelizzard@programming.dev 3 points 8 months ago

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.

[–] YIj54yALOJxEsY20eU@lemm.ee 1 points 7 months ago

I used the embed feature to embedd some files into the binary recently. It feels so hacked together.