multi-http-method-support

This commit is contained in:
stevenzack
2020-08-14 19:19:04 +08:00
committed by Kevin Wan
parent 5e007c1f9f
commit 3321ed3519
2 changed files with 15 additions and 35 deletions

View File

@@ -13,6 +13,7 @@ var funcsMap = template.FuncMap{
"pathToFuncName": pathToFuncName,
"parseType": parseType,
"add": add,
"upperCase": upperCase,
}
func lowCamelCase(s string) string {
@@ -69,3 +70,7 @@ func parseType(t string) string {
func add(a, i int) int {
return a + i
}
func upperCase(s string) string {
return strings.ToUpper(s)
}