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
Since implementing the "dive" tag, I have been questioning whether the hierarchical data structure is the best option, mainly because of the extra overhead and placeholder errors needed.
I could store the struct name, field name and name-spaced name on the field error and could just return a map of map[string]*FieldError where the key is the name-spaced name; with this approach I should be able to make validator even faster and more efficient.
my only concern is getting rid of the hierarchical functionality in case someone is using it or it would be beneficial to keep.
so should I just return a map of errors?
The text was updated successfully, but these errors were encountered:
Hello All!
Since implementing the "dive" tag, I have been questioning whether the hierarchical data structure is the best option, mainly because of the extra overhead and placeholder errors needed.
I could store the struct name, field name and name-spaced name on the field error and could just return a map of map[string]*FieldError where the key is the name-spaced name; with this approach I should be able to make validator even faster and more efficient.
my only concern is getting rid of the hierarchical functionality in case someone is using it or it would be beneficial to keep.
so should I just return a map of errors?
The text was updated successfully, but these errors were encountered: