structtag
structtag copied to clipboard
Parse and modify Go struct field tags
Export error variables that are returned from exported methods fix documentation for Get method
Sometimes options can contain the comma character as part of the option payload. The `Parse()` method currently mangles the output. I have: ```golang type t struct { Reason string `json:"reason"...
chore: Upgrade gomod to Go 1.21. perf: Preallocate slice in `(*Tags).Keys()`. test: Add more tests and improve test coverage. test: Move syntax error testing to `TestParseErr`. refactor: Use github.com/stretchr/testify to...
https://github.com/fatih/structtag/blob/2977b8db49bbf5ae2e0ae2be55e43d2c1798fc03/tags.go#L11-L19 Is there a particular reason these error sentinel values are unexported? Because of this I have to match errors by message, which is obviously bad: ```go tag, err :=...