From d520fcf7cc6243354fdbc9a31e9f5a3e99912b9f Mon Sep 17 00:00:00 2001 From: hattizai <150505746+hattizai@users.noreply.github.com> Date: Thu, 4 Jan 2024 23:50:59 +0800 Subject: [PATCH] fix(codec/types): fix struct tag value (#18945) --- codec/types/any_internal_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec/types/any_internal_test.go b/codec/types/any_internal_test.go index 9adab29466..0b3c155821 100644 --- a/codec/types/any_internal_test.go +++ b/codec/types/any_internal_test.go @@ -8,7 +8,7 @@ import ( ) type Dog struct { - Name string `protobuf:"bytes,1,opt,name=size,proto3" json:"size,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (d Dog) Greet() string { return d.Name }