diff --git a/Makefile b/Makefile index 67b3504..765e4fc 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,9 @@ SHELL:=bash PROTOWRAP=hack/bin/protowrap -PROTOC_GEN_GO=hack/bin/protoc-gen-go +PROTOC_GEN_GO=hack/bin/protoc-gen-go-lite PROTOC_GEN_STARPC=hack/bin/protoc-gen-go-starpc -PROTOC_GEN_VTPROTO=hack/bin/protoc-gen-go-vtproto +PROTOC_GEN_VTPROTO=hack/bin/protoc-gen-go-vtproto-lite GOIMPORTS=hack/bin/goimports GOFUMPT=hack/bin/gofumpt GOLANGCI_LINT=hack/bin/golangci-lint @@ -23,14 +23,14 @@ vendor: $(PROTOC_GEN_GO): cd ./hack; \ go build -v \ - -o ./bin/protoc-gen-go \ - google.golang.org/protobuf/cmd/protoc-gen-go + -o ./bin/protoc-gen-go-lite \ + github.com/aperturerobotics/protobuf-go-lite/cmd/protoc-gen-go-lite $(PROTOC_GEN_VTPROTO): cd ./hack; \ go build -v \ - -o ./bin/protoc-gen-go-vtproto \ - github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto + -o ./bin/protoc-gen-go-lite-vtproto \ + github.com/aperturerobotics/vtprotobuf-lite/cmd/protoc-gen-go-lite-vtproto $(PROTOC_GEN_STARPC): cd ./hack; \ @@ -79,9 +79,9 @@ gengo: vendor $(GOIMPORTS) $(PROTOWRAP) $(PROTOC_GEN_GO) $(PROTOC_GEN_VTPROTO) $ ln -s $$(pwd) $$(pwd)/vendor/$${PROJECT} ; \ $(PROTOWRAP) \ -I $$(pwd)/vendor \ - --go_out=$$(pwd)/vendor \ - --go-vtproto_out=$$(pwd)/vendor \ - --go-vtproto_opt=features=marshal+unmarshal+size+equal+clone \ + --go-lite_out=$$(pwd)/vendor \ + --go-lite-vtproto_out=$$(pwd)/vendor \ + --go-lite-vtproto_opt=features=marshal+unmarshal+size+equal+clone \ --go-starpc_out=$$(pwd)/vendor \ --proto_path $$(pwd)/vendor \ --print_structure \ diff --git a/backoff/backoff.pb.go b/backoff/backoff.pb.go index 8d87a1b..27b569b 100644 --- a/backoff/backoff.pb.go +++ b/backoff/backoff.pb.go @@ -1,24 +1,10 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.33.0-devel -// protoc v5.26.1 +// Code generated by protoc-gen-go-lite. DO NOT EDIT. // source: github.com/aperturerobotics/util/backoff/backoff.proto package backoff import ( - reflect "reflect" - sync "sync" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) + strconv "strconv" ) // BackoffKind is the kind of backoff. @@ -54,34 +40,18 @@ func (x BackoffKind) Enum() *BackoffKind { } func (x BackoffKind) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (BackoffKind) Descriptor() protoreflect.EnumDescriptor { - return file_github_com_aperturerobotics_util_backoff_backoff_proto_enumTypes[0].Descriptor() -} - -func (BackoffKind) Type() protoreflect.EnumType { - return &file_github_com_aperturerobotics_util_backoff_backoff_proto_enumTypes[0] -} - -func (x BackoffKind) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use BackoffKind.Descriptor instead. -func (BackoffKind) EnumDescriptor() ([]byte, []int) { - return file_github_com_aperturerobotics_util_backoff_backoff_proto_rawDescGZIP(), []int{0} + name, valid := BackoffKind_name[int32(x)] + if valid { + return name + } + return strconv.Itoa(int(x)) } // Backoff configures a backoff. type Backoff struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + unknownFields []byte // BackoffKind is the kind of backoff. - BackoffKind BackoffKind `protobuf:"varint,1,opt,name=backoff_kind,json=backoffKind,proto3,enum=backoff.BackoffKind" json:"backoff_kind,omitempty"` + BackoffKind BackoffKind `protobuf:"varint,1,opt,name=backoff_kind,json=backoffKind,proto3" json:"backoff_kind,omitempty"` // Exponential is the arguments for an exponential backoff. Exponential *Exponential `protobuf:"bytes,2,opt,name=exponential,proto3" json:"exponential,omitempty"` // Constant is the arugment for a constant backoff. @@ -90,36 +60,10 @@ type Backoff struct { func (x *Backoff) Reset() { *x = Backoff{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_aperturerobotics_util_backoff_backoff_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Backoff) String() string { - return protoimpl.X.MessageStringOf(x) } func (*Backoff) ProtoMessage() {} -func (x *Backoff) ProtoReflect() protoreflect.Message { - mi := &file_github_com_aperturerobotics_util_backoff_backoff_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Backoff.ProtoReflect.Descriptor instead. -func (*Backoff) Descriptor() ([]byte, []int) { - return file_github_com_aperturerobotics_util_backoff_backoff_proto_rawDescGZIP(), []int{0} -} - func (x *Backoff) GetBackoffKind() BackoffKind { if x != nil { return x.BackoffKind @@ -143,10 +87,7 @@ func (x *Backoff) GetConstant() *Constant { // Exponential is the exponential arguments. type Exponential struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + unknownFields []byte // InitialInterval is the initial interval in milliseconds. // Default: 800ms. InitialInterval uint32 `protobuf:"varint,1,opt,name=initial_interval,json=initialInterval,proto3" json:"initial_interval,omitempty"` @@ -171,36 +112,10 @@ type Exponential struct { func (x *Exponential) Reset() { *x = Exponential{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_aperturerobotics_util_backoff_backoff_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Exponential) String() string { - return protoimpl.X.MessageStringOf(x) } func (*Exponential) ProtoMessage() {} -func (x *Exponential) ProtoReflect() protoreflect.Message { - mi := &file_github_com_aperturerobotics_util_backoff_backoff_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Exponential.ProtoReflect.Descriptor instead. -func (*Exponential) Descriptor() ([]byte, []int) { - return file_github_com_aperturerobotics_util_backoff_backoff_proto_rawDescGZIP(), []int{1} -} - func (x *Exponential) GetInitialInterval() uint32 { if x != nil { return x.InitialInterval @@ -238,10 +153,7 @@ func (x *Exponential) GetMaxElapsedTime() uint32 { // Constant contains constant backoff options. type Constant struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + unknownFields []byte // Interval is the timing to back off, in milliseconds. // Defaults to 5 seconds. Interval uint32 `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"` @@ -249,177 +161,13 @@ type Constant struct { func (x *Constant) Reset() { *x = Constant{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_aperturerobotics_util_backoff_backoff_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Constant) String() string { - return protoimpl.X.MessageStringOf(x) } func (*Constant) ProtoMessage() {} -func (x *Constant) ProtoReflect() protoreflect.Message { - mi := &file_github_com_aperturerobotics_util_backoff_backoff_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Constant.ProtoReflect.Descriptor instead. -func (*Constant) Descriptor() ([]byte, []int) { - return file_github_com_aperturerobotics_util_backoff_backoff_proto_rawDescGZIP(), []int{2} -} - func (x *Constant) GetInterval() uint32 { if x != nil { return x.Interval } return 0 } - -var File_github_com_aperturerobotics_util_backoff_backoff_proto protoreflect.FileDescriptor - -var file_github_com_aperturerobotics_util_backoff_backoff_proto_rawDesc = []byte{ - 0x0a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x70, 0x65, - 0x72, 0x74, 0x75, 0x72, 0x65, 0x72, 0x6f, 0x62, 0x6f, 0x74, 0x69, 0x63, 0x73, 0x2f, 0x75, 0x74, - 0x69, 0x6c, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x6f, - 0x66, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, - 0x66, 0x22, 0xa9, 0x01, 0x0a, 0x07, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x12, 0x37, 0x0a, - 0x0c, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x2e, 0x42, 0x61, - 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x0b, 0x62, 0x61, 0x63, 0x6b, 0x6f, - 0x66, 0x66, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x36, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x6f, 0x6e, 0x65, - 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x61, - 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x69, 0x61, - 0x6c, 0x52, 0x0b, 0x65, 0x78, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x12, 0x2d, - 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x11, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x22, 0xd8, 0x01, - 0x0a, 0x0b, 0x45, 0x78, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x12, 0x29, 0x0a, - 0x10, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, - 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, - 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x75, 0x6c, 0x74, - 0x69, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x6d, 0x75, - 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, - 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, - 0x6d, 0x61, 0x78, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x31, 0x0a, 0x14, 0x72, - 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x63, - 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x13, 0x72, 0x61, 0x6e, 0x64, 0x6f, - 0x6d, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x28, - 0x0a, 0x10, 0x6d, 0x61, 0x78, 0x5f, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x45, 0x6c, 0x61, - 0x70, 0x73, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x26, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, - 0x2a, 0x5d, 0x0a, 0x0b, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x4b, 0x69, 0x6e, 0x64, 0x12, - 0x17, 0x0a, 0x13, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x4b, 0x69, 0x6e, 0x64, 0x5f, 0x55, - 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x42, 0x61, 0x63, 0x6b, - 0x6f, 0x66, 0x66, 0x4b, 0x69, 0x6e, 0x64, 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x4e, 0x45, 0x4e, 0x54, - 0x49, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, - 0x4b, 0x69, 0x6e, 0x64, 0x5f, 0x43, 0x4f, 0x4e, 0x53, 0x54, 0x41, 0x4e, 0x54, 0x10, 0x02, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_github_com_aperturerobotics_util_backoff_backoff_proto_rawDescOnce sync.Once - file_github_com_aperturerobotics_util_backoff_backoff_proto_rawDescData = file_github_com_aperturerobotics_util_backoff_backoff_proto_rawDesc -) - -func file_github_com_aperturerobotics_util_backoff_backoff_proto_rawDescGZIP() []byte { - file_github_com_aperturerobotics_util_backoff_backoff_proto_rawDescOnce.Do(func() { - file_github_com_aperturerobotics_util_backoff_backoff_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_aperturerobotics_util_backoff_backoff_proto_rawDescData) - }) - return file_github_com_aperturerobotics_util_backoff_backoff_proto_rawDescData -} - -var file_github_com_aperturerobotics_util_backoff_backoff_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_github_com_aperturerobotics_util_backoff_backoff_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_github_com_aperturerobotics_util_backoff_backoff_proto_goTypes = []interface{}{ - (BackoffKind)(0), // 0: backoff.BackoffKind - (*Backoff)(nil), // 1: backoff.Backoff - (*Exponential)(nil), // 2: backoff.Exponential - (*Constant)(nil), // 3: backoff.Constant -} -var file_github_com_aperturerobotics_util_backoff_backoff_proto_depIdxs = []int32{ - 0, // 0: backoff.Backoff.backoff_kind:type_name -> backoff.BackoffKind - 2, // 1: backoff.Backoff.exponential:type_name -> backoff.Exponential - 3, // 2: backoff.Backoff.constant:type_name -> backoff.Constant - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_github_com_aperturerobotics_util_backoff_backoff_proto_init() } -func file_github_com_aperturerobotics_util_backoff_backoff_proto_init() { - if File_github_com_aperturerobotics_util_backoff_backoff_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_github_com_aperturerobotics_util_backoff_backoff_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Backoff); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_aperturerobotics_util_backoff_backoff_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Exponential); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_aperturerobotics_util_backoff_backoff_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Constant); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_github_com_aperturerobotics_util_backoff_backoff_proto_rawDesc, - NumEnums: 1, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_github_com_aperturerobotics_util_backoff_backoff_proto_goTypes, - DependencyIndexes: file_github_com_aperturerobotics_util_backoff_backoff_proto_depIdxs, - EnumInfos: file_github_com_aperturerobotics_util_backoff_backoff_proto_enumTypes, - MessageInfos: file_github_com_aperturerobotics_util_backoff_backoff_proto_msgTypes, - }.Build() - File_github_com_aperturerobotics_util_backoff_backoff_proto = out.File - file_github_com_aperturerobotics_util_backoff_backoff_proto_rawDesc = nil - file_github_com_aperturerobotics_util_backoff_backoff_proto_goTypes = nil - file_github_com_aperturerobotics_util_backoff_backoff_proto_depIdxs = nil -} diff --git a/backoff/backoff_vtproto.pb.go b/backoff/backoff_vtproto.pb.go index b5e2d07..3452b40 100644 --- a/backoff/backoff_vtproto.pb.go +++ b/backoff/backoff_vtproto.pb.go @@ -1,5 +1,5 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 +// Code generated by protoc-gen-go-vtproto-lite. DO NOT EDIT. +// protoc-gen-go-vtproto-lite version: v0.1.5 // source: github.com/aperturerobotics/util/backoff/backoff.proto package backoff @@ -10,16 +10,7 @@ import ( io "io" math "math" - protohelpers "github.com/planetscale/vtprotobuf/protohelpers" - proto "google.golang.org/protobuf/proto" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) + protohelpers "github.com/aperturerobotics/vtprotobuf-lite/protohelpers" ) func (m *Backoff) CloneVT() *Backoff { @@ -37,7 +28,7 @@ func (m *Backoff) CloneVT() *Backoff { return r } -func (m *Backoff) CloneMessageVT() proto.Message { +func (m *Backoff) CloneMessageVT() any { return m.CloneVT() } @@ -58,7 +49,7 @@ func (m *Exponential) CloneVT() *Exponential { return r } -func (m *Exponential) CloneMessageVT() proto.Message { +func (m *Exponential) CloneMessageVT() any { return m.CloneVT() } @@ -75,7 +66,7 @@ func (m *Constant) CloneVT() *Constant { return r } -func (m *Constant) CloneMessageVT() proto.Message { +func (m *Constant) CloneMessageVT() any { return m.CloneVT() } @@ -97,7 +88,7 @@ func (this *Backoff) EqualVT(that *Backoff) bool { return string(this.unknownFields) == string(that.unknownFields) } -func (this *Backoff) EqualMessageVT(thatMsg proto.Message) bool { +func (this *Backoff) EqualMessageVT(thatMsg any) bool { that, ok := thatMsg.(*Backoff) if !ok { return false @@ -128,7 +119,7 @@ func (this *Exponential) EqualVT(that *Exponential) bool { return string(this.unknownFields) == string(that.unknownFields) } -func (this *Exponential) EqualMessageVT(thatMsg proto.Message) bool { +func (this *Exponential) EqualMessageVT(thatMsg any) bool { that, ok := thatMsg.(*Exponential) if !ok { return false @@ -147,7 +138,7 @@ func (this *Constant) EqualVT(that *Constant) bool { return string(this.unknownFields) == string(that.unknownFields) } -func (this *Constant) EqualMessageVT(thatMsg proto.Message) bool { +func (this *Constant) EqualMessageVT(thatMsg any) bool { that, ok := thatMsg.(*Constant) if !ok { return false diff --git a/filter/filter.pb.go b/filter/filter.pb.go index 6b5ea02..8e01213 100644 --- a/filter/filter.pb.go +++ b/filter/filter.pb.go @@ -1,34 +1,13 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.33.0-devel -// protoc v5.26.1 +// Code generated by protoc-gen-go-lite. DO NOT EDIT. // source: github.com/aperturerobotics/util/filter/filter.proto package filter -import ( - reflect "reflect" - sync "sync" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - // StringFilter matches the value of a string against a set of rules. // All of the non-zero rules must match for the filter to match. // An empty filter matches any. type StringFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + unknownFields []byte // Empty matches the value against the empty value. Empty bool `protobuf:"varint,1,opt,name=empty,proto3" json:"empty,omitempty"` // NotEmpty matches the value against a not-empty value. @@ -50,36 +29,10 @@ type StringFilter struct { func (x *StringFilter) Reset() { *x = StringFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_aperturerobotics_util_filter_filter_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StringFilter) String() string { - return protoimpl.X.MessageStringOf(x) } func (*StringFilter) ProtoMessage() {} -func (x *StringFilter) ProtoReflect() protoreflect.Message { - mi := &file_github_com_aperturerobotics_util_filter_filter_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StringFilter.ProtoReflect.Descriptor instead. -func (*StringFilter) Descriptor() ([]byte, []int) { - return file_github_com_aperturerobotics_util_filter_filter_proto_rawDescGZIP(), []int{0} -} - func (x *StringFilter) GetEmpty() bool { if x != nil { return x.Empty @@ -135,90 +88,3 @@ func (x *StringFilter) GetContains() string { } return "" } - -var File_github_com_aperturerobotics_util_filter_filter_proto protoreflect.FileDescriptor - -var file_github_com_aperturerobotics_util_filter_filter_proto_rawDesc = []byte{ - 0x0a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x70, 0x65, - 0x72, 0x74, 0x75, 0x72, 0x65, 0x72, 0x6f, 0x62, 0x6f, 0x74, 0x69, 0x63, 0x73, 0x2f, 0x75, 0x74, - 0x69, 0x6c, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0xd9, - 0x01, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, - 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, - 0x65, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x6d, 0x70, - 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x6f, 0x74, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x12, 0x0e, 0x0a, 0x02, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x72, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x61, 0x73, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, - 0x1d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x61, 0x73, 0x53, 0x75, 0x66, 0x66, 0x69, 0x78, 0x12, 0x1a, - 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_github_com_aperturerobotics_util_filter_filter_proto_rawDescOnce sync.Once - file_github_com_aperturerobotics_util_filter_filter_proto_rawDescData = file_github_com_aperturerobotics_util_filter_filter_proto_rawDesc -) - -func file_github_com_aperturerobotics_util_filter_filter_proto_rawDescGZIP() []byte { - file_github_com_aperturerobotics_util_filter_filter_proto_rawDescOnce.Do(func() { - file_github_com_aperturerobotics_util_filter_filter_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_aperturerobotics_util_filter_filter_proto_rawDescData) - }) - return file_github_com_aperturerobotics_util_filter_filter_proto_rawDescData -} - -var file_github_com_aperturerobotics_util_filter_filter_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_github_com_aperturerobotics_util_filter_filter_proto_goTypes = []interface{}{ - (*StringFilter)(nil), // 0: filter.StringFilter -} -var file_github_com_aperturerobotics_util_filter_filter_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_github_com_aperturerobotics_util_filter_filter_proto_init() } -func file_github_com_aperturerobotics_util_filter_filter_proto_init() { - if File_github_com_aperturerobotics_util_filter_filter_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_github_com_aperturerobotics_util_filter_filter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StringFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_github_com_aperturerobotics_util_filter_filter_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_github_com_aperturerobotics_util_filter_filter_proto_goTypes, - DependencyIndexes: file_github_com_aperturerobotics_util_filter_filter_proto_depIdxs, - MessageInfos: file_github_com_aperturerobotics_util_filter_filter_proto_msgTypes, - }.Build() - File_github_com_aperturerobotics_util_filter_filter_proto = out.File - file_github_com_aperturerobotics_util_filter_filter_proto_rawDesc = nil - file_github_com_aperturerobotics_util_filter_filter_proto_goTypes = nil - file_github_com_aperturerobotics_util_filter_filter_proto_depIdxs = nil -} diff --git a/filter/filter_vtproto.pb.go b/filter/filter_vtproto.pb.go index 53b4086..3c238b8 100644 --- a/filter/filter_vtproto.pb.go +++ b/filter/filter_vtproto.pb.go @@ -1,5 +1,5 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.6.0 +// Code generated by protoc-gen-go-vtproto-lite. DO NOT EDIT. +// protoc-gen-go-vtproto-lite version: v0.1.5 // source: github.com/aperturerobotics/util/filter/filter.proto package filter @@ -8,16 +8,7 @@ import ( fmt "fmt" io "io" - protohelpers "github.com/planetscale/vtprotobuf/protohelpers" - proto "google.golang.org/protobuf/proto" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) + protohelpers "github.com/aperturerobotics/vtprotobuf-lite/protohelpers" ) func (m *StringFilter) CloneVT() *StringFilter { @@ -44,7 +35,7 @@ func (m *StringFilter) CloneVT() *StringFilter { return r } -func (m *StringFilter) CloneMessageVT() proto.Message { +func (m *StringFilter) CloneMessageVT() any { return m.CloneVT() } @@ -87,7 +78,7 @@ func (this *StringFilter) EqualVT(that *StringFilter) bool { return string(this.unknownFields) == string(that.unknownFields) } -func (this *StringFilter) EqualMessageVT(thatMsg proto.Message) bool { +func (this *StringFilter) EqualMessageVT(thatMsg any) bool { that, ok := thatMsg.(*StringFilter) if !ok { return false diff --git a/go.mod b/go.mod index 2515893..cab8dae 100644 --- a/go.mod +++ b/go.mod @@ -3,13 +3,15 @@ module github.com/aperturerobotics/util go 1.22 require ( + github.com/aperturerobotics/vtprotobuf-lite v0.1.5 github.com/cenkalti/backoff v2.2.1+incompatible github.com/fsnotify/fsnotify v1.7.0 github.com/pkg/errors v0.9.1 - github.com/planetscale/vtprotobuf v0.6.0 github.com/sirupsen/logrus v1.9.3 golang.org/x/exp v0.0.0-20240409090435-93d18d7e34b8 - google.golang.org/protobuf v1.33.0 ) -require golang.org/x/sys v0.18.0 // indirect +require ( + github.com/stretchr/testify v1.8.4 // indirect + golang.org/x/sys v0.18.0 // indirect +) diff --git a/go.sum b/go.sum index 89baefa..2556076 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +github.com/aperturerobotics/vtprotobuf-lite v0.1.5 h1:aQojORUaNCsNjGh7607mfJpkddD8UsrU72MqRKL5JC4= +github.com/aperturerobotics/vtprotobuf-lite v0.1.5/go.mod h1:HeRtCC5R/m3OLgHIPm60H6JO5uO4a4bqmZ0oFSFFoiA= github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -5,12 +7,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= -github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= -github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/planetscale/vtprotobuf v0.6.0 h1:nBeETjudeJ5ZgBHUz1fVHvbqUKnYOXNhsIEabROxmNA= -github.com/planetscale/vtprotobuf v0.6.0/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= @@ -24,8 +22,6 @@ golang.org/x/exp v0.0.0-20240409090435-93d18d7e34b8/go.mod h1:/lliqkxwWAhPjf5oSO golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/hack/go.mod b/hack/go.mod index 00df3af..ea8767a 100644 --- a/hack/go.mod +++ b/hack/go.mod @@ -2,21 +2,19 @@ module hack go 1.22 -toolchain go1.22.1 - replace github.com/aperturerobotics/util => ../ replace ( github.com/sirupsen/logrus => github.com/aperturerobotics/logrus v1.9.4-0.20240119050608-13332fb58195 // aperture - google.golang.org/protobuf => github.com/aperturerobotics/protobuf-go v1.33.1-0.20240322235918-b46c9358eab6 // aperture + google.golang.org/protobuf => github.com/aperturerobotics/protobuf-go v1.33.1-0.20240411062030-e36f75e0a3b8 // aperture ) require ( + github.com/aperturerobotics/protobuf-go-lite v0.1.2 + github.com/aperturerobotics/vtprotobuf-lite v0.1.5 github.com/golangci/golangci-lint v1.55.2 - github.com/planetscale/vtprotobuf v0.6.0 github.com/psampaz/go-mod-outdated v0.9.0 golang.org/x/tools v0.20.0 - google.golang.org/protobuf v1.33.0 mvdan.cc/gofumpt v0.5.0 ) @@ -199,6 +197,7 @@ require ( golang.org/x/sync v0.7.0 // indirect golang.org/x/sys v0.19.0 // indirect golang.org/x/text v0.13.0 // indirect + google.golang.org/protobuf v1.33.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/hack/go.sum b/hack/go.sum index 523283b..d6c62f1 100644 --- a/hack/go.sum +++ b/hack/go.sum @@ -83,10 +83,14 @@ github.com/aperturerobotics/goprotowrap v0.3.1 h1:nFCWZ4QNQEzpsgCN1mVWLDVTF/Jm0h github.com/aperturerobotics/goprotowrap v0.3.1/go.mod h1:5tRlYsb4VF0ySzx2/My3u9PtzTWNu5o2bqYHj0TRw+U= github.com/aperturerobotics/logrus v1.9.4-0.20240119050608-13332fb58195 h1:uyeD1J23j/kFiCFO7rx+GQA4tCqOEy3IJyMK4f6vamE= github.com/aperturerobotics/logrus v1.9.4-0.20240119050608-13332fb58195/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/aperturerobotics/protobuf-go v1.33.1-0.20240322235918-b46c9358eab6 h1:ScQPbkbABsFb7e86ArWSRtoOemQGrX4BDKeHj+JAgbQ= -github.com/aperturerobotics/protobuf-go v1.33.1-0.20240322235918-b46c9358eab6/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +github.com/aperturerobotics/protobuf-go v1.33.1-0.20240411062030-e36f75e0a3b8 h1:Juij9Gj5jVOJjqiu3EGHWnX9nH6fkBeGGu/3U8i5qss= +github.com/aperturerobotics/protobuf-go v1.33.1-0.20240411062030-e36f75e0a3b8/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +github.com/aperturerobotics/protobuf-go-lite v0.1.2 h1:nNXL3JS+xovPIK5v+X9DrRWaA4+Sc15h+AEvo+xPNYg= +github.com/aperturerobotics/protobuf-go-lite v0.1.2/go.mod h1:mtG4PgCvwlH313gS4NF2H/QBfzqjl/Fzrbu8GMgGDQ8= github.com/aperturerobotics/starpc v0.22.8 h1:NUSv38E0inQDFApkJFfaVOGhFZnfz12N1X83gJ2EBwM= github.com/aperturerobotics/starpc v0.22.8/go.mod h1:FCDvOejaKii6SOBp+1XovhfreLR7yJAl4oeuoDdy4lQ= +github.com/aperturerobotics/vtprotobuf-lite v0.1.5 h1:aQojORUaNCsNjGh7607mfJpkddD8UsrU72MqRKL5JC4= +github.com/aperturerobotics/vtprotobuf-lite v0.1.5/go.mod h1:HeRtCC5R/m3OLgHIPm60H6JO5uO4a4bqmZ0oFSFFoiA= github.com/ashanbrown/forbidigo v1.6.0 h1:D3aewfM37Yb3pxHujIPSpTf6oQk9sc9WZi8gerOIVIY= github.com/ashanbrown/forbidigo v1.6.0/go.mod h1:Y8j9jy9ZYAEHXdu723cUlraTqbzjKF1MUyfOKL+AjcU= github.com/ashanbrown/makezero v1.1.1 h1:iCQ87C0V0vSyO+M9E/FZYbu65auqH0lnsOkf5FcB28s= @@ -435,8 +439,6 @@ github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= -github.com/planetscale/vtprotobuf v0.6.0 h1:nBeETjudeJ5ZgBHUz1fVHvbqUKnYOXNhsIEabROxmNA= -github.com/planetscale/vtprotobuf v0.6.0/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/polyfloyd/go-errorlint v1.4.5 h1:70YWmMy4FgRHehGNOUask3HtSFSOLKgmDn7ryNe7LqI= diff --git a/hack/tools.go b/hack/tools.go index 7514f91..e14d6ba 100644 --- a/hack/tools.go +++ b/hack/tools.go @@ -10,10 +10,10 @@ import ( // _ imports protowrap _ "github.com/aperturerobotics/goprotowrap/cmd/protowrap" - // _ imports protoc-gen-go - _ "google.golang.org/protobuf/cmd/protoc-gen-go" - // _ imports protoc-gen-go-vtproto - _ "github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto" + // _ imports protoc-gen-go-lite + _ "github.com/aperturerobotics/protobuf-go-lite/cmd/protoc-gen-go-lite" + // _ imports protoc-gen-go-lite-vtproto + _ "github.com/aperturerobotics/vtprotobuf-lite/cmd/protoc-gen-go-lite-vtproto" // _ imports golangci-lint _ "github.com/golangci/golangci-lint/pkg/golinters" // _ imports golangci-lint commands