This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move custom tag check to inside userDefinedArray (following similar pattern to the other userDefined<type> functions); rearrange and add tests; * go fmt fixes; add support for 'oneof' tag for strings; add one basic test; * add error check and error return for malformed tag; add extra tests to validate these scenarios * added support for a tag called oneof for strings and ints * update the creation of the custom types (not using the underlying types) * update examples; add const for convenience * go fmt * update documentation examples; add TrimSpace to ensure space between colon separated values doesn't matter; * update readme with caveat about 'oneof' tag * linter fixes * clean up duplicate if conditions * finish fixing merge conflicts * update example to be correct. use ':' to separate arguments not ',' * update example comments for clarity * ensure comma separated arguments to oneof tag; add several more tests and a new error; * update documentation examples * remove useless if statement that is never true Co-authored-by: altair <[email protected]>
- Loading branch information
1 parent
492cb34
commit 463a71e
Showing
5 changed files
with
347 additions
and
33 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
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.