summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-25 18:37:44 -0600
committerJeff Carr <[email protected]>2024-02-25 18:37:44 -0600
commit7b4eb41de7e1c65c07dfc8f04f1263b3f258b268 (patch)
tree0b8e95385cef782a74c554d53223c2ad55d60825 /main.go
parentfd082d49659c722776d72b97b9eca9d4aab8b78e (diff)
better names with Init() vs New()v0.21.1
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.go b/main.go
index c220754..5e4d7e2 100644
--- a/main.go
+++ b/main.go
@@ -46,17 +46,17 @@ func main() {
makeMainWindow()
// These are your problems
- me.problems = NewErrorBox(me.window.Box(), "Errors", "has problems?")
+ me.problems = InitErrorBox(me.window.Box(), "Errors", "has problems?")
me.problems.addIPerror(RR, USER, "1:1:1:1")
me.window.Show()
me.debug = debugWindow("Debugging")
- me.digStatus = NewDigStatusWindow()
- me.statusDNS = NewHostnameStatusWindow()
-
- me.statusOS = linuxstatus.NewLinuxStatus(me.myGui)
+ // 3 external windows that should be seperate go packages
+ me.digStatus = InitDigStatus()
+ me.statusDNS = InitHostnameStatus()
+ me.statusOS = linuxstatus.InitLinuxStatus()
digLoop()