summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-03 14:04:47 -0500
committerJeff Carr <[email protected]>2025-09-03 14:04:47 -0500
commitd981b93728de9bfc513028c81fd0bf42cc5c838a (patch)
tree36896b8f96d1678f637ccc7f2acc59528bdc4d2f /structs.go
parent98cc06ab8fc98b728107fff135b107dcdb56fb2a (diff)
finally a proper use for sync.Once
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/structs.go b/structs.go
index 561bf8f..97e088d 100644
--- a/structs.go
+++ b/structs.go
@@ -10,7 +10,7 @@ import (
// maybe an interface someday?
type Forge struct {
// one-time initialized data
- initOnce sync.Once
+ once sync.Once
initErr error // init error, if any
goSrc string // the path to go/src
repoPB string // the path to the repos.pb cache file