package commands import ( "errors" "redisClone/pkg/core" ) func Ping(args []string, getShard func(k string) *core.Shard) interface{} { if len(args) == 1 { return core.SimpleString("PONG") } if len(args) == 2 { return args[1] } return errors.New("wrong number of arguments for 'PING' command") }