go fmt sources & add command-line file loading

This commit is contained in:
Luke I. Wilson
2021-03-11 14:11:43 -06:00
parent d0bb43cc8f
commit 443070f077
8 changed files with 46 additions and 27 deletions

View File

@ -7,21 +7,21 @@ import (
)
type Button struct {
Text string
Text string
Callback func()
x, y int
x, y int
width, height int
focused bool
focused bool
Theme *Theme
}
func NewButton(text string, theme *Theme, callback func()) *Button {
return &Button{
Text: text,
Text: text,
Callback: callback,
Theme: theme,
Theme: theme,
}
}