summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-28 23:00:29 -0600
committerJeff Carr <[email protected]>2024-11-28 23:00:29 -0600
commit488550a081769f491f326c7949add6cb9f0cc0b4 (patch)
tree15cfbac9c9af70d68b88fc4533f2e0db1b102dee /init.go
parenta9e35d54295e979566940d60401014296801e553 (diff)
add example code. add sync.onlyOnce
Diffstat (limited to 'init.go')
-rw-r--r--init.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.go b/init.go
index 0f400f8..874439c 100644
--- a/init.go
+++ b/init.go
@@ -24,6 +24,10 @@ func init() {
func Init() *Forge {
f := new(Forge)
+
+ // cache.go has Do()
+ // f.initOnce.Do(f.initWork)
+
f.Config = new(ForgeConfigs)
// load the ~/.config/forge/ config