diff options
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 { |
