From d51f5b385ab89fd9b898d8feec470289b5db6802 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 18 Jan 2025 07:29:44 -0600 Subject: attempt to fix when not using forge --- structs.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 structs.go (limited to 'structs.go') diff --git a/structs.go b/structs.go new file mode 100644 index 0000000..c0b0c7d --- /dev/null +++ b/structs.go @@ -0,0 +1,24 @@ +package main + +import ( + "go.wit.com/dev/alexflint/arg" + "go.wit.com/gui" + "go.wit.com/lib/gadgets" + "go.wit.com/lib/protobuf/forgepb" + "go.wit.com/lib/protobuf/gitpb" +) + +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 + forge *forgepb.Forge // the interface to the 'forge' protobuf information + repo *gitpb.Repo // this is the repo we are in + myGui *gui.Node // 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 +} -- cgit v1.2.3