handle google.protobuf.timestamp

This commit is contained in:
jhayotte
2017-06-08 16:40:52 +02:00
parent 098b247649
commit d0c5bb5a97
6 changed files with 49 additions and 0 deletions

View File

@@ -263,6 +263,9 @@ func jsSuffixReservedKeyword(s string) string {
}
func getPackageTypeName(s string) string {
if strings.Compare(s, ".google.protobuf.Timestamp") == 0 {
return "timestamp"
}
if strings.Contains(s, ".") {
return strings.Split(s, ".")[1]
}