chore: helper function for preamble
This commit is contained in:
2
internal/env/env.go
vendored
2
internal/env/env.go
vendored
@@ -6,7 +6,6 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
|
||||
func Default(key, def string) string {
|
||||
if v, ok := os.LookupEnv(key); ok {
|
||||
return v
|
||||
@@ -17,6 +16,7 @@ func Default(key, def string) string {
|
||||
type secret struct {
|
||||
value string
|
||||
}
|
||||
|
||||
func (s secret) Secret() string {
|
||||
return s.value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user