master
bel 2023-04-02 10:28:12 -06:00
parent 44ec540db3
commit 3bb7cad554
1 changed files with 6 additions and 0 deletions

View File

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