Bumping k8s dependencies to 1.13

This commit is contained in:
Cheng Xing
2018-11-16 14:08:25 -08:00
parent 305407125c
commit b4c0b68ec7
8002 changed files with 884099 additions and 276228 deletions

View File

@@ -16,8 +16,8 @@ package main
import (
surface "github.com/googleapis/gnostic/surface"
"unicode"
"strings"
"unicode"
)
type GoLanguageModel struct{}
@@ -49,7 +49,7 @@ func (language *GoLanguageModel) Prepare(model *surface.Model) {
f.NativeType = "int64"
}
case "object":
f.NativeType = "{}interface"
f.NativeType = "interface{}"
case "string":
f.NativeType = "string"
default:
@@ -88,6 +88,8 @@ func goFieldName(name string) string {
// avoid integers
if name == "200" {
return "OK"
} else if unicode.IsDigit(rune(name[0])) {
return "Code" + name
}
return name
}