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
import "fmt"
type Button struct {
Char byte
Down bool
}
func (button Button) String() string {
return fmt.Sprintf("%c:%v", button.Char, button.Down)
}