Browse Source

fix: index of ReadJSONProtobuf options

pull/1688/head
Jyny C.Y. Chen 1 year ago
parent
commit
8ec1c14a1a
  1. 2
      context/context.go

2
context/context.go

@ -2407,7 +2407,7 @@ func (ctx *Context) ReadJSONProtobuf(ptr proto.Message, opts ...ProtoUnmarshalOp
opt := defaultProtobufUnmarshalOptions
if len(opts) > 0 {
opt = opts[1]
opt = opts[0]
}
return opt.Unmarshal(rawData, ptr)

Loading…
Cancel
Save