You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are no particular reasons for that. The only thing was I didn't wanted to make it part of the public API, because then it would mean I wouldn't be able to make any changes. So it's an additional layer of maintenance we have to take care of. I wrote it here: #16
But given the fact this is something people rely on it, I think it makes sense to expose them.
Would you mind opening a PR? The #16 is not mergable anymore. Let's fix this.
structtag/tags.go
Lines 11 to 19 in 2977b8d
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:
Instead, it should be:
I propose exporting error sentinel values. Such a change would be backward compatible anyway.
The text was updated successfully, but these errors were encountered: