summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-24 13:06:36 -0500
committerJeff Carr <[email protected]>2025-10-24 13:06:36 -0500
commit31e2be4b6f0388975244a0ee6a5929bdf9be2149 (patch)
tree930bfc19fbc368e53015222873a49c6851f6359b /init.go
parent7c4e482a19b0af3eac87b43f71a594518ffb3c57 (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.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/init.go b/init.go
index 180ee44..ac03111 100644
--- a/init.go
+++ b/init.go
@@ -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()