diff options
Diffstat (limited to 'stat.SaveVerbose.go')
| -rw-r--r-- | stat.SaveVerbose.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/stat.SaveVerbose.go b/stat.SaveVerbose.go new file mode 100644 index 0000000..5505481 --- /dev/null +++ b/stat.SaveVerbose.go @@ -0,0 +1,25 @@ +// 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.24 Built on 2025/10/15 04:52:04 ( 17 s) +// Theese sort.pb.go and marshal.pb.go files are autogenerated +// The autogenpb sources have example .proto files with instructions +// + +package gitpb + +import ( + "go.wit.com/lib/config" + "go.wit.com/log" +) + +func (pb *Stats) SaveVerbose() error { + err := config.SavePB(pb) + if err == nil { + log.Printf("Saved %s with len(%d) hashes.\n", pb.Filename, pb.Len()) + } else { + log.Printf("Save err %s with len(%d) hashes. err(%v)\n", pb.Filename, pb.Len(), err) + } + return err +} |
