{S,G}etFields methods should take paths ...string to []struct{ field string; subPaths []string; } and loop over the result using a switch, which matches by the field field, where if subPaths is non-zero {S,G}etFields with subFields is called and the field is set using = otherwise
Summary:
{S,G}etFields
methods should takepaths ...string
to[]struct{ field string; subPaths []string; }
and loop over the result using aswitch
, which matches by thefield
field, where ifsubPaths
is non-zero{S,G}etFields
withsubFields
is called and the field is set using=
otherwiseReplaces #7