diff options
Diffstat (limited to 'argv.LoadSafe.go')
| -rw-r--r-- | argv.LoadSafe.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/argv.LoadSafe.go b/argv.LoadSafe.go new file mode 100644 index 0000000..a66758c --- /dev/null +++ b/argv.LoadSafe.go @@ -0,0 +1,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.27 Built on 2025/10/16 17:13:05 ( 50 m) +// Theese sort.pb.go and marshal.pb.go files are autogenerated +// The autogenpb sources have example .proto files with instructions +// + +package argvpb + +import ( + "errors" + + "go.wit.com/lib/config" +) + +// deletes and remakes the PB file when .proto versions change +func (pb *Argvs) LoadSafe() error { + err := config.LoadPB(pb) + if errors.Is(err, config.VersionMismatch) { + panic("fixme in autopb") + // TODO: erase and recreate the PB file + } else if err != nil { + panic("still fixme in") + } + return err +} |
