From da4a1fc0406b9914a11b3e47f18d59779f8f025e Mon Sep 17 00:00:00 2001 From: Johan Brandhorst Date: Thu, 15 Nov 2018 17:25:10 +0000 Subject: [PATCH] Corret wellKnownTypeConv function references Fixes #808 --- protoc-gen-grpc-gateway/descriptor/types.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/protoc-gen-grpc-gateway/descriptor/types.go b/protoc-gen-grpc-gateway/descriptor/types.go index ada554b53a8..c9b4a561b78 100644 --- a/protoc-gen-grpc-gateway/descriptor/types.go +++ b/protoc-gen-grpc-gateway/descriptor/types.go @@ -453,14 +453,14 @@ var ( wellKnownTypeConv = map[string]string{ ".google.protobuf.Timestamp": "runtime.Timestamp", ".google.protobuf.Duration": "runtime.Duration", - ".google.protobuf.StringValue": "runtime.StringValue", - ".google.protobuf.BytesValue": "runtime.BytesValue", - ".google.protobuf.Int32Value": "runtime.Int32Value", - ".google.protobuf.UInt32Value": "runtime.UInt32Value", - ".google.protobuf.Int64Value": "runtime.Int64Value", - ".google.protobuf.UInt64Value": "runtime.UInt64Value", - ".google.protobuf.FloatValue": "runtime.FloatValue", - ".google.protobuf.DoubleValue": "runtime.DoubleValue", - ".google.protobuf.BoolValue": "runtime.BoolValue", + ".google.protobuf.StringValue": "runtime.String", + ".google.protobuf.BytesValue": "runtime.Bytes", + ".google.protobuf.Int32Value": "runtime.Int32", + ".google.protobuf.UInt32Value": "runtime.UInt32", + ".google.protobuf.Int64Value": "runtime.Int64", + ".google.protobuf.UInt64Value": "runtime.UInt64", + ".google.protobuf.FloatValue": "runtime.Float", + ".google.protobuf.DoubleValue": "runtime.Double", + ".google.protobuf.BoolValue": "runtime.Bool", } )