From 1948e8a0d7d92676ef12c378fdf4232f2108f822 Mon Sep 17 00:00:00 2001 From: Zich Liew <46365143+ZichooleLongGui@users.noreply.github.com> Date: Sat, 1 Jun 2019 16:14:06 +0800 Subject: [PATCH] Update marshaler.go Modify "Name()" to "String()" of proto.Marshaler --- codec/proto/marshaler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec/proto/marshaler.go b/codec/proto/marshaler.go index e2889fa7..8f9eee2a 100644 --- a/codec/proto/marshaler.go +++ b/codec/proto/marshaler.go @@ -14,6 +14,6 @@ func (Marshaler) Unmarshal(data []byte, v interface{}) error { return proto.Unmarshal(data, v.(proto.Message)) } -func (Marshaler) Name() string { +func (Marshaler) String() string { return "proto" }