good morning!!!!

Skip to content
Snippets Groups Projects
Verified Commit 302da6d9 authored by a's avatar a
Browse files

fix

parent 5a0ef627
No related branches found
No related tags found
No related merge requests found
Pipeline #23866 canceled with stage
......@@ -18,9 +18,7 @@ var funcs = template.FuncMap{
"list": func(v ...any) []any {
return v
},
"camelCase": func(v string) string {
return strcase.ToCamel(v)
},
"camelCase": strcase.ToCamel,
"goType": func(v string) string {
switch v {
case "boolean":
......@@ -37,9 +35,7 @@ var funcs = template.FuncMap{
panic(fmt.Sprintln("unknown go type:", v))
}
},
"refName": func(v string) string {
return filepath.Base(v)
},
"refName": filepath.Base,
}
func Generate(rpc *types.OpenRPC, ts string, output string) error {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment