blob: 089ffe882c564eba47bc688fd930f7b9277abe29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Code generated by go.wit.com/apps/autogenpb DO NOT EDIT.
// go install go.wit.com/apps/autogenpb@latest
//
// This file was autogenerated with autogenpb:
// autogenpb v0.5.25-2-g30e8de2 Built on 2025/10/16 09:16:09 ( 3 m)
// Theese sort.pb.go and marshal.pb.go files are autogenerated
// The autogenpb sources have example .proto files with instructions
//
package forgepb
import (
"go.wit.com/lib/ENV"
"go.wit.com/lib/config"
"go.wit.com/log"
)
func (pb *ForgeConfigs) loadConfig() error {
filename, err := config.LoadByAppName(pb, "forge", "forge")
if err != nil {
log.Info("couldn't load filename:", filename)
log.Info("forge has not been configured")
panic("config failed to load. make a new/blank forge config here?")
}
ENV.SetGlobal("lib/forgepb", "ForgeCfg", pb.Filename)
// init new config here
return err
}
|