Documentation ¶ Index ¶ type Model func New(width, height int, options ...Option) *Model func (m *Model) Disable() func (m *Model) Enable() 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 WithEnabled(e bool) Option func WithFollow(f bool) Option func WithVerticalOffset(offset int) Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Model ¶ type Model struct { Enabled bool VerticalOffset int Follow bool // contains filtered or unexported fields } func New ¶ func New(width, height int, options ...Option) *Model func (*Model) Disable ¶ added in v1.0.39 func (m *Model) Disable() func (*Model) Enable ¶ added in v1.0.39 func (m *Model) Enable() 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[Model] func WithEnabled ¶ added in v1.0.39 func WithEnabled(e bool) Option func WithFollow ¶ added in v1.0.39 func WithFollow(f bool) Option func WithVerticalOffset ¶ added in v1.0.39 func WithVerticalOffset(offset int) Option Source Files ¶ View all Source files logView.go Click to show internal directories. Click to hide internal directories.