Explorar o código

fix(goctl): api/new/api.tpl (#1788)

Fyn %!s(int64=3) %!d(string=hai) anos
pai
achega
ee88abce14
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      tools/goctl/api/new/api.tpl

+ 2 - 2
tools/goctl/api/new/api.tpl

@@ -1,9 +1,9 @@
 type Request {
-  Name string ` + "`" + `path:"name,options=you|me"` + "`" + `
+  Name string `path:"name,options=you|me"`
 }
 
 type Response {
-  Message string ` + "`" + `json:"message"` + "`" + `
+  Message string `json:"message"`
 }
 
 service {{.name}}-api {