diff options
Diffstat (limited to 'pkg/server/cmds.go')
| -rw-r--r-- | pkg/server/cmds.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/server/cmds.go b/pkg/server/cmds.go index febda6b..34aeaa8 100644 --- a/pkg/server/cmds.go +++ b/pkg/server/cmds.go @@ -191,11 +191,11 @@ func (c *cmd) parseFuncSignature(i interface{}) error { return nil } -func newCmd(where string, f interface{}, args string) { +func handle(where string, f interface{}, args string) { c := &cmd{name: where, args: args} if err := c.parseFuncSignature(f); err != nil { - log.Panicf("newCmd: %s", err) + log.Panicf("handle: %s", err) } path := strings.Fields(where) @@ -298,5 +298,5 @@ func help(r *request, args []string) { } func init() { - newCmd("help", help, "[path]") + handle("help", help, "[path]") } |
