From a0e68f8a2be4255cc51c3a70890b3e905c47abac Mon Sep 17 00:00:00 2001 From: jhayotte Date: Mon, 18 Sep 2017 18:56:37 +0200 Subject: [PATCH] enhance isFieldMessageTimeStamp --- helpers/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/helpers.go b/helpers/helpers.go index 752db99..1721c3b 100644 --- a/helpers/helpers.go +++ b/helpers/helpers.go @@ -155,7 +155,7 @@ func getEnumValue(f []*descriptor.EnumDescriptorProto, name string) []*descripto func isFieldMessageTimeStamp(f *descriptor.FieldDescriptorProto) bool { if f.Type != nil && *f.Type == descriptor.FieldDescriptorProto_TYPE_MESSAGE { - if strings.Compare(*f.Name, "timestamp") == 0 { + if strings.Compare(*f.TypeName, ".google.protobuf.Timestamp") == 0 { return true } }