package config import ( "fmt" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protoreflect" ) // Because you followed autogenpb's advice (you did follow it right?) you now // win the automation lottery. // // for this .proto file, GetProtobufName(pb) returns "repos" // Then, ConfigLoad(), ConfigSave(), CacheLoad() and CacheSave() // all do exactly what is expected: // // Automatically work with the files: // // ~/.config//repos.pb // // or // // ~/.cache/