summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
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 {