package button import "fmt" type Button struct { Char byte Down bool } func (button Button) String() string { return fmt.Sprintf("%c:%v", button.Char, button.Down) }