summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-21 06:40:48 -0500
committerJeff Carr <[email protected]>2025-10-21 06:40:48 -0500
commit3cf635e3c41be385b50778f7818fd50b006f1671 (patch)
treedba1a8c80e363d4f86a5f81623bc1f603e39318e /structs.go
parent4d3349c453879051a7499fa07a97dfcb20b554ea (diff)
something to act like bash ENV
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/structs.go b/structs.go
new file mode 100644
index 0000000..89c5177
--- /dev/null
+++ b/structs.go
@@ -0,0 +1,20 @@
+package ENV
+
+import (
+ "errors"
+ sync "sync"
+)
+
+var envPB *Keys
+
+// lock access to the PB
+var saveMu sync.RWMutex
+
+// these are normally what are sent from ldflags
+var APPNAME string
+var BUILDTIME string
+var VERSION string
+
+var argv []string
+
+var NotInitialized error = errors.New("your application config not initialized")