Documentation ¶ Index ¶ type Config type Model func New(width, height int, options ...Option) *Model func (m *Model) Init() tea.Cmd func (m *Model) Update(msg tea.Msg) (*Model, tea.Cmd) func (m *Model) View() string func (m *Model) Write(p []byte) (n int, err error) type Option func WithHorizontalOffset(offset int) Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { HorizontalOffset int } type Model ¶ type Model struct { // contains filtered or unexported fields } func New ¶ func New(width, height int, options ...Option) *Model func (*Model) Init ¶ func (m *Model) Init() tea.Cmd func (*Model) Update ¶ func (m *Model) Update(msg tea.Msg) (*Model, tea.Cmd) func (*Model) View ¶ func (m *Model) View() string func (*Model) Write ¶ func (m *Model) Write(p []byte) (n int, err error) type Option ¶ type Option = generic.Option[Config] func WithHorizontalOffset ¶ func WithHorizontalOffset(offset int) Option Source Files ¶ View all Source files model.go Click to show internal directories. Click to hide internal directories.