From 21a44a952f0272d094d8dc01163065da5a6ce12e Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Fri, 10 Jul 2015 20:22:11 +0000 Subject: Pass by val in ping handler. --- ping.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ping.go b/ping.go index 48294ea..9680f4c 100644 --- a/ping.go +++ b/ping.go @@ -2,7 +2,7 @@ package goctl type cmdPing struct{} -func (cmd *cmdPing) Name() string { +func (cmd cmdPing) Name() string { return "ping" } @@ -10,7 +10,7 @@ func (cmd cmdPing) Help() string { return "checks whether the connection is working" } -func (cmd *cmdPing) Run(_ *Goctl, _ []string) string { +func (cmd cmdPing) Run(_ *Goctl, _ []string) string { return "pong" } -- cgit v1.2.3