summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-22 16:58:31 -0500
committerJeff Carr <[email protected]>2025-09-22 16:58:31 -0500
commit020dd376224a6fd60fab17c3957d1815daa2a635 (patch)
treefafb07a9db9bb63458577e616e8fef678028180d /main.go
parent9e49784b9e375b234e37befe950d1ce0f39bd1b4 (diff)
redo init() and config()v0.0.64
Diffstat (limited to 'main.go')
-rw-r--r--main.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/main.go b/main.go
deleted file mode 100644
index b066d35..0000000
--- a/main.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package zoopb
-
-import (
- "time"
-
- "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
-}
-
-func (m *Machine) SinceLastUpdate() time.Duration {
- age := m.Laststamp.AsTime()
- return time.Since(age)
-}