From 127f36ca1f82ca9c1945e08802a49e4f9e30d2b7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 11 Sep 2025 15:03:44 -0500 Subject: refactor to store info --- structs.go | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index 145a521..6452f8e 100644 --- a/structs.go +++ b/structs.go @@ -2,7 +2,6 @@ package main import ( "go.wit.com/dev/alexflint/arg" - "go.wit.com/lib/gadgets" "go.wit.com/lib/gui/prep" "go.wit.com/lib/protobuf/gitpb" ) @@ -11,12 +10,10 @@ var me *mainType // this app's variables type mainType struct { - pp *arg.Parser // for parsing the command line args. Yay to alexf lint! - goSrc string // path to ~/go/src or go.work file - goPath string // the goPath to use for the package - hasWork bool // true if using go.work file - repo *gitpb.Repo // this is the repo we are in - myGui *prep.GuiPrep // the gui toolkit handle - cBox *controlBox // the GUI box in the main window - basicWindow *gadgets.BasicWindow // this is a basic window. the user can open and close it + pp *arg.Parser // for parsing the command line args. Yay to alexf lint! + goSrc string // path to ~/go/src or go.work file + goPath string // the goPath to use for the package + hasWork bool // true if using go.work file + repo *gitpb.Repo // this is the repo we are in + myGui *prep.GuiPrep // the gui toolkit handle } -- cgit v1.2.3