diff options
| author | Jeff Carr <[email protected]> | 2024-11-28 23:00:29 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-28 23:00:29 -0600 |
| commit | 488550a081769f491f326c7949add6cb9f0cc0b4 (patch) | |
| tree | 15cfbac9c9af70d68b88fc4533f2e0db1b102dee /structs.go | |
| parent | a9e35d54295e979566940d60401014296801e553 (diff) | |
add example code. add sync.onlyOnce
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,12 +1,18 @@ package forgepb import ( + sync "sync" + "go.wit.com/lib/protobuf/gitpb" "go.wit.com/lib/protobuf/zoopb" ) // maybe an interface someday? type Forge struct { + // one-time initialized data + initOnce sync.Once + initErr error // init error, if any + goSrc string // the path to go/src Config *ForgeConfigs // config repos for readonly, private, etc Repos *gitpb.Repos |
