-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow arbitrary nesting of struct tag values.
This uses a pattern that leverages the idea that all of these values are just maps, and an optional path can be provided to access a value at an arbitrary nested level in the struct tags. Why would you want to do this? I don't know, it's probably not a good idea to go any further than one or two nestings. However, it does make the signature a little nicer to work with as this makes the second param optional.
- Loading branch information
1 parent
09380c9
commit 8d329ed
Showing
3 changed files
with
35 additions
and
31 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
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