-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] kvlist may now deserialize much more complex structures
Prior to this PR, kvlist was restricted to structs in which all fields were `[]string`. Now, kvlist can be used to deserialize structs in which each fields is either `[]primitive` (for every trivially-deserializable primitive type) *or* a type that implements `TextUnmarshal`. For this: - we get rid of the notion nesting and replace it with an Enter/Exit mechanism - we use this Enter/Exit to build a startup-time trivial FSM in kvlist, which lets us better control where we're at in the data structure - we generally try harder to find a solution when we're trying to deserialize an array or slice.
- Loading branch information
Showing
8 changed files
with
416 additions
and
97 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.