enhance isFieldMessageTimeStamp

This commit is contained in:
jhayotte 2017-09-18 18:56:37 +02:00
parent 1dc5500690
commit a0e68f8a2b

View File

@ -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
}
}