summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-21 13:43:24 -0500
committerJeff Carr <[email protected]>2025-10-21 13:43:24 -0500
commitf1e9fdedb2cf3af1f8db28b6afabaac220c7f9e9 (patch)
tree8aae962ccd96658591634d77ff87d4c3d5429090 /structs.go
parent933b2e62463c5ddbe061e83c9a31135573b4f57b (diff)
try to isolate Load() and Save()
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/structs.go b/structs.go
index 7b07579..fc92b35 100644
--- a/structs.go
+++ b/structs.go
@@ -1,14 +1,11 @@
package forgepb
import (
- sync "sync"
-
"go.wit.com/lib/protobuf/gitpb"
)
// maybe an interface someday?
type Forge struct {
- once sync.Once // one-time initialized data
Config *ForgeConfigs // config repos for readonly, private, etc
Repos *gitpb.Repos // the repo protobufs
Patches *Patches // patches that are in progress
@@ -16,6 +13,7 @@ type Forge struct {
hostname string // your hostname
goWork bool // means the user is currently using a go.work file
mode ForgeMode // what "mode" forge is in
+ // once sync.Once // one-time initialized data
}
func (f *Forge) IsGoWork() bool {