diff options
| author | Jeff Carr <[email protected]> | 2025-10-24 13:06:36 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-24 13:06:36 -0500 |
| commit | 31e2be4b6f0388975244a0ee6a5929bdf9be2149 (patch) | |
| tree | 930bfc19fbc368e53015222873a49c6851f6359b /init.go | |
| parent | 7c4e482a19b0af3eac87b43f71a594518ffb3c57 (diff) | |
ENV vs env isn't worth the fight. lower case is lame for this thoughv0.0.7
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ -package ENV +package env import ( "os" @@ -26,12 +26,12 @@ func Init(appname, version, buildtime string, fromargv []string, goodFunc func(s loadAppENV() - SetGlobal("lib/ENV", "APPNAME", APPNAME) - SetGlobal("lib/ENV", "VERSION", VERSION) - SetGlobal("lib/ENV", "BUILDTIME", BUILDTIME) + SetGlobal("lib/env", "APPNAME", APPNAME) + SetGlobal("lib/env", "VERSION", VERSION) + SetGlobal("lib/env", "BUILDTIME", BUILDTIME) } -// if it exists, loads ~/.config/<appname>/<appname>.ENV +// if it exists, loads ~/.config/<appname>/<appname>.env func loadAppENV() error { saveMu.Lock() saveMu.Unlock() |
