-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new mangler that allows us to have aliases for dials tags to facilitate migrating from one name to another seamlessly. If both the old name and the new name are set, an error will be returned because the expectation is that you're using one or the other exclusively. Also, fix a bug in `ez` where an error thrown by a Source may cause the process to hang. And, lastly, specifically exclude TextUnmarshaller implementing types from mangling.
- Loading branch information
1 parent
402b482
commit 40b8af1
Showing
10 changed files
with
396 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
// Package common provides constants that are used among different dials sources | ||
package common | ||
|
||
// DialsTagName is the name of the dials tag. | ||
const DialsTagName = "dials" | ||
const ( | ||
// DialsTagName is the name of the dials tag. | ||
DialsTagName = "dials" | ||
|
||
// DialsEnvTagName is the name of the dialsenv tag. | ||
DialsEnvTagName = "dialsenv" | ||
|
||
// DialsFlagTagName is the name of the dialsflag tag. | ||
DialsFlagTagName = "dialsflag" | ||
|
||
// DialsPFlagTagName is the name of the dialspflag tag. | ||
DialsPFlagTag = "dialspflag" | ||
|
||
// DialsFlagAliasTag is the name of the dialsflagalias tag. | ||
DialsPFlagShortTag = "dialspflagshort" | ||
|
||
// HelpTextTag is the name of the struct tag for flag descriptions | ||
DialsHelpTextTag = "dialsdesc" | ||
) |
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
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.