summaryrefslogtreecommitdiff
path: root/new.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-21 02:23:47 -0600
committerJeff Carr <[email protected]>2024-01-21 02:23:47 -0600
commit433d83e63678e4483e1d8af2e522c7b05c7d7909 (patch)
tree7a6168fd19f27c5af9b241c45d0fe33ef9be21d7 /new.go
parentfdac7e7b8944d51b8207c1797edd0be9450de7b8 (diff)
fix name changesv0.5.6
new gadgets correct go mod updated paths Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'new.go')
-rw-r--r--new.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/new.go b/new.go
index 4ae57eb..22a2e59 100644
--- a/new.go
+++ b/new.go
@@ -1,10 +1,10 @@
// This creates a simple hello world window
package linuxstatus
-import (
+import (
"go.wit.com/log"
- "go.wit.com/gui/gadgets"
+ "go.wit.com/lib/gadgets"
)
func New() *LinuxStatus {
@@ -12,18 +12,18 @@ func New() *LinuxStatus {
log.Log(WARN, "You have done New() twice. You can only do this once")
return me
}
- me = &LinuxStatus {
+ me = &LinuxStatus{
hidden: true,
- ready: false,
+ ready: false,
}
me.ifmap = make(map[int]*IFtype)
me.ipmap = make(map[string]*IPtype)
-
+
return me
}
func (ls *LinuxStatus) InitWindow() {
- if ! ls.Initialized() {
+ if !ls.Initialized() {
log.Log(WARN, "not initalized yet (no parent for the window?)")
return
}