forked from koding/multiconfig
-
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.
feat: Support map types in flag, tag and env loaders
Adds support for loading configuration into map[string]string and map[string]int (and related) types. The string encoding used is the same as the one used in pflag: elements are delimited by comma's (like for slices) and key values are split by equals sign (=). For example: key1=val1,key2=val2 While updating the string parser, I have updated the error messages that are returned. They now leverage error wrapping and include more information about the field and value that contained the error.
- Loading branch information
Showing
4 changed files
with
357 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
Oops, something went wrong.