good morning!!!!

Skip to content
Snippets Groups Projects
Commit b79fcb1d authored by a's avatar a
Browse files

code generation

parent 2f371595
No related branches found
No related tags found
No related merge requests found
......@@ -87,15 +87,9 @@ type GoOpenRPCService interface {
func (h *GoOpenRPCHandler) RouteRPC(r jrpc.Router) {
{{range .Methods -}}
// {{.Summary}}
{{if .Namespace}}
if err := r.RegisterFunc("{{.Namespace}}_{{.MethodName}}", h.Srv.{{camelCase .Name}}); err != nil {
panic(err)
}
{{else}}
if err := r.RegisterFunc("{{.MethodName}}", h.Srv.{{camelCase .Name}}); err != nil {
panic(err)
}
{{end}}
if err := r.RegisterFunc("{{.MethodName}}", h.Srv.{{camelCase .Name}}); err != nil {
panic(err)
}
{{end -}}
}
......
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