summaryrefslogtreecommitdiff
path: root/argv.LoadSafe.go
blob: a66758cefc782eb5242e0ed93c31620969b00299 (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.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
}