summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2015-07-10 20:22:11 +0000
committerBrian Cully <bjc@kublai.com>2015-07-10 20:22:11 +0000
commit21a44a952f0272d094d8dc01163065da5a6ce12e (patch)
tree50b04a8c5d4256d9d5c8ab829e1960dd83216828
parent17d71eaa18bfeb07fab78ac13b1c4fca8379a6d0 (diff)
downloadgoctl-21a44a952f0272d094d8dc01163065da5a6ce12e.tar.gz
goctl-21a44a952f0272d094d8dc01163065da5a6ce12e.zip
Pass by val in ping handler.
-rw-r--r--ping.go4
1 files 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"
}