Browse Source

envexp: add top-level Expand() using Getenv

Signed-off-by: Alejandro Mery <amery@jpi.io>
v0.2.x
Alejandro Mery 3 years ago
parent
commit
607fdb6ee4
  1. 14
      envexp/global.go

14
envexp/global.go

@ -0,0 +1,14 @@
package envexp
import (
"os"
)
var envExpander = &expander{
get: os.Getenv,
}
// Expand uses os.GetEnv() to expand a given string
func Expand(s string) string {
return envExpander.Expand(s)
}
Loading…
Cancel
Save