diff options
author | Brian Cully <bjc@kublai.com> | 2015-07-10 20:22:11 +0000 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2015-07-10 20:22:11 +0000 |
commit | 21a44a952f0272d094d8dc01163065da5a6ce12e (patch) | |
tree | 50b04a8c5d4256d9d5c8ab829e1960dd83216828 | |
parent | 17d71eaa18bfeb07fab78ac13b1c4fca8379a6d0 (diff) | |
download | goctl-21a44a952f0272d094d8dc01163065da5a6ce12e.tar.gz goctl-21a44a952f0272d094d8dc01163065da5a6ce12e.zip |
Pass by val in ping handler.
-rw-r--r-- | ping.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" } |