summaryrefslogtreecommitdiff
path: root/pkg/server/echo.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/server/echo.go')
-rw-r--r--pkg/server/echo.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/pkg/server/echo.go b/pkg/server/echo.go
index 74c0450..c8dce31 100644
--- a/pkg/server/echo.go
+++ b/pkg/server/echo.go
@@ -3,13 +3,12 @@ package server
import (
"strings"
"fmt"
- "io"
)
func init() {
- setHandler("echo", echo)
+ setHandler(echo, "echo")
}
-func echo(s *Server, args []string, out io.Writer) {
- fmt.Fprint(out, strings.Join(args[1:], " "))
+func echo(r *request) {
+ fmt.Fprint(r.out, strings.Join(r.args, " "))
}