summaryrefslogtreecommitdiffstats
path: root/cmd_ping.go
blob: 9da8d9620dfd7d62faa5edecd80022f576fa20b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package goctl

type cmdPing struct{}

func (cmd *cmdPing) Name() string {
	return "ping"
}

func (cmd *cmdPing) Run(_ []string) string {
	return "pong"
}

func init() {
	builtinHandlers = append(builtinHandlers, &cmdPing{})
}