Skip to content

Commit 625dc57

Browse files
committed
feat: Add support for setting values of different type but same kind
The canonical case here is different string types: eg a password field that has custom formatting methods for redacting values.
1 parent 2c6a194 commit 625dc57

File tree

6 files changed

+100
-134
lines changed

6 files changed

+100
-134
lines changed

env_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ func setEnvVars(t *testing.T, structName, prefix string) {
100100
"EPOCH": "1638551008",
101101
"EPOCH32": "1638551009",
102102
"EPOCH64": "1638551010",
103+
"ROOTPASSWORD": "mystery",
103104
}
104105
case "CamelCaseServer":
105106
env = map[string]string{

flag_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ func getFlags(t *testing.T, structName, prefix string) []string {
284284
"-epoch": "1638551008",
285285
"-epoch32": "1638551009",
286286
"-epoch64": "1638551010",
287+
"-rootpassword": "mystery",
287288
}
288289
case "FlattenedServer":
289290
flags = map[string]string{

0 commit comments

Comments
 (0)