TheThingsIndustries / protoc-gen-fieldmask

Generate field mask utilities from proto files
Apache License 2.0
10 stars 3 forks source link

Group paths #9

Closed rvolosatovs closed 5 years ago

rvolosatovs commented 5 years ago

Summary:

{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

Replaces #7

rvolosatovs commented 5 years ago

When taking closer look at this realized that map[string][]string is sufficient