From c5472a42a24ff2ec0dce44c6ea275cd2670f8524 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 13 Feb 2025 14:11:52 -0600 Subject: finally starting to clean up the init() process --- structs.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index e9cfc8f..af5fb41 100644 --- a/structs.go +++ b/structs.go @@ -22,7 +22,8 @@ import ( "go.wit.com/toolkits/tree" ) -var initOnce sync.Once +var initOnce sync.Once // run initPlugin() only once +var outf *os.File // hacks for capturing stdout // It's probably a terrible idea to call this 'me' // 2025 note: doesn't seem terrible to call this 'me' anymore. notsure. @@ -77,8 +78,7 @@ type config struct { mouse mouse // mouse settings showDebug bool // todo: move this into config struct debug bool // todo: move this into config struct - outf *os.File // hacks for capturing stdout - + starttime time.Time // checks how long it takes on startup } // stuff controlling how the mouse works -- cgit v1.2.3