From f1e9fdedb2cf3af1f8db28b6afabaac220c7f9e9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 21 Oct 2025 13:43:24 -0500 Subject: try to isolate Load() and Save() --- structs.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'structs.go') 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 { -- cgit v1.2.3