chore: helper function for preamble

This commit is contained in:
xuu
2025-03-28 07:21:34 -06:00
parent 00c97eb011
commit b863a2786e
4 changed files with 48 additions and 33 deletions

2
internal/env/env.go vendored
View File

@@ -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
}