Versions in this module Expand all Collapse all v2 v2.1.0 Apr 20, 2026 v2.0.0 Apr 20, 2026 Changes in this version + const DefaultVersion + const VersionFieldName + var E_ExpectedVersion = &file_options_proto_extTypes[0] + var File_options_proto protoreflect.FileDescriptor + var File_versioned_test_proto protoreflect.FileDescriptor + func GetVersion(msg proto.Message) (int, error) + type Loader struct + func New(opts ...Option) (*Loader, error) + func (l *Loader) Load(path string, msg proto.Message) error + func (l *Loader) LoadBytes(data []byte, ext string, msg proto.Message) error + type Option func(*Loader) error + func WithMigration[S, T proto.Message](fn func(S) (T, error)) Option + func WithParser(p Parser) Option + func WithStrictMode() Option + type Parser interface + Extensions func() []string + Unmarshal func(data []byte, path string, msg proto.Message, strict bool) error + type ParserRegistry struct + func (r *ParserRegistry) DetectFormat(path string) (Parser, error) + func (r *ParserRegistry) Get(ext string) (Parser, bool) + func (r *ParserRegistry) Register(p Parser) + type VersionedConfig struct + Name string + Version int32 + func (*VersionedConfig) Descriptor() ([]byte, []int) + func (*VersionedConfig) ProtoMessage() + func (x *VersionedConfig) GetName() string + func (x *VersionedConfig) GetVersion() int32 + func (x *VersionedConfig) ProtoReflect() protoreflect.Message + func (x *VersionedConfig) Reset() + func (x *VersionedConfig) String() string