diff options
| author | Jeff Carr <[email protected]> | 2025-10-21 13:43:24 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-21 13:43:24 -0500 |
| commit | f1e9fdedb2cf3af1f8db28b6afabaac220c7f9e9 (patch) | |
| tree | 8aae962ccd96658591634d77ff87d4c3d5429090 /structs.go | |
| parent | 933b2e62463c5ddbe061e83c9a31135573b4f57b (diff) | |
try to isolate Load() and Save()
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 { |
