package commands import ( "fmt" ) type AddAlias struct { Match string `json:"match"` Alias string `json:"alias"` } func (c AddAlias) CommandDescription() string { return fmt.Sprintf("AddAlias(%v, %v)", c.Match, c.Alias) } type RemoveAlias struct { Match string `json:"match"` Alias string `json:"alias"` } func (c RemoveAlias) CommandDescription() string { return fmt.Sprintf("RemoveAlias(%v, %v)", c.Match, c.Alias) }