Closed davidnewhall closed 4 months ago
Hey, thanks for the detailed report.
I think it complains about LogConfig.AppName not having the toml
tag.
And here the problem is with MySQLConfig fields missing the json
tag.
Am I missing something here? Please let me know.
I can see why it might be hard to get the exact reason with many struct layers without field name hints, sorry for the inconvenience. We're about to add a verbose mode in #89, which will print the names of the untagged fields.
Thank you for the detailed analysis. I've could swear I've seen musttag complain directly with the line number for the struct missing tags. This behavior was unexpected. I'll add the missing tags you found and report back if this goes away.
+1 to hints or struct/struct member names.
Indeed you found the problem and fixing it makes the lint warning go away. Thanks so much!
I might be missing something, but this looks like a false positive to me. Is there some way I can fix this? Thanks!
Output
Same thing in a screenshot:
Code
The links go directly to the affected lines on GitHub.
From config.go:
From clientinfo.go: