Maintain history; use state
This commit is contained in:
3
main.go
3
main.go
@ -4,12 +4,11 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"git.makyo.dev/makyo/gogogogogram/model"
|
||||
tea "github.com/charmbracelet/bubbletea"
|
||||
)
|
||||
|
||||
func main() {
|
||||
p := tea.NewProgram(model.New(4, 4))
|
||||
p := tea.NewProgram(newModel(4, 4))
|
||||
if _, err := p.Run(); err != nil {
|
||||
fmt.Printf("Ah drat — %v\n", err)
|
||||
os.Exit(1)
|
||||
|
||||
Reference in New Issue
Block a user