Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Model ¶
type Model struct { // contains filtered or unexported fields }
func NewModel ¶
func NewModel(path string, opts ...ModelOption) Model
NewModel creates a new model instance given a decks location.
type ModelOption ¶
type ModelOption func(*Model)
ModelOption configure the Model options.
func WithClock ¶
func WithClock(clock clock.Clock) ModelOption
WithClock initializes the model with the given clock.
func WithRepository ¶
func WithRepository(factory func(clock.Clock) (Repository, error)) ModelOption
WithRepository configure the terminal with an alternative repository.
func WithWindowSize ¶
func WithWindowSize(width, height int) ModelOption
WithWindowSize initializes the model with the given width and height.
Click to show internal directories.
Click to hide internal directories.