summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-22 07:17:57 -0600
committerJeff Carr <[email protected]>2025-02-22 07:17:57 -0600
commit08400c8913919198be7eac8e1fd37fc4a979c7b0 (patch)
tree23533ec56c7f5421f26fbe2acb25c76a00321375 /main.go
parent8f6f85e51cc4dcc1ba4636e35a2369f92002bdd7 (diff)
seperate package from forgev0.0.36
Diffstat (limited to 'main.go')
-rw-r--r--main.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/main.go b/main.go
new file mode 100644
index 0000000..c3fc8c6
--- /dev/null
+++ b/main.go
@@ -0,0 +1,19 @@
+package zoopb
+
+import (
+ "go.wit.com/log"
+)
+
+// sent via -ldflags
+var VERSION string
+var BUILDTIME string
+
+func InitMachine() *Machine {
+ machine := new(Machine)
+ if err := machine.ConfigLoad(); err != nil {
+ log.Info("zoopb.ConfigLoad() failed", err)
+ }
+ machine.InitWit()
+
+ return machine
+}