18 lines
215 B
Go
Raw Normal View History

2015-12-12 13:11:49 +01:00
package command
import (
"errors"
"io"
)
var (
ErrorNoSuchCommand = errors.New("No such command.")
)
type Command interface {
2016-01-19 23:41:40 +01:00
Marshal(io.Writer)
2015-12-12 13:11:49 +01:00
Unmarshal([]byte) error
}
type CommandCreator func() Command