-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generate: support parsing and encoding unknown tags
For parsing, we simply stop using SkipTags and now use ReadTags to set the new UnknownTags field that is in all flexible structs. For appending, we need to switch to using reflect.DeepEqual when the tag is a struct, since a map is now in the struct. This *should* be fine since the struct is simple, minus the tags. As well, we no longer just append 0 tags blindly; instead, we always have to append unknown tags as well.
- Loading branch information
Showing
2 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters