Skip to content

Commit

Permalink
Add SecretWithValue function. (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
pstibrany committed Mar 31, 2022
1 parent d031b36 commit 49faf69
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions flagext/secret.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
package flagext

// SecretWithValue returns Secret with specified value.
func SecretWithValue(v string) Secret {
return Secret{value: v}
}

type Secret struct {
value string
}
Expand Down

0 comments on commit 49faf69

Please sign in to comment.