Documentation
¶
Overview ¶
Package ui is the Bubble Tea front end: one root model, five screens.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func New ¶
func New(lessons []content.Lesson, prog *progress.Progress, savePath, version string, checkUpdate func() string) Model
New builds the root model. version is the current build (shown on the title screen); checkUpdate is run once off the render path to learn whether a newer release exists — it returns the newer version string or "" (pass nil to disable the check entirely, e.g. for dev builds or in tests).
Click to show internal directories.
Click to hide internal directories.