use fmt.Println instead of println

This commit is contained in:
kevin
2020-08-11 12:44:21 +08:00
committed by kingxt
parent f77c73eec1
commit 4f59fd306a
4 changed files with 7 additions and 5 deletions

View File

@@ -156,7 +156,7 @@ func paramsForRoute(route spec.Route, prefixForType func(string) string) string
hasBody := hasRequestBody(route)
rt, err := goTypeToTs(route.RequestType.Name, prefixForType)
if err != nil {
println(err.Error())
fmt.Println(err.Error())
return ""
}
if hasParams && hasBody {