Documentation ¶ Index ¶ type Viewer func NewViewer(w int, h int) *Viewer func (m *Viewer) Header() string func (m Viewer) Init() tea.Cmd func (m *Viewer) ReadFile() string func (m *Viewer) RenderMarkdown(md string, width int) string func (m *Viewer) Update(msg tea.Msg) (tea.Model, tea.Cmd) func (m Viewer) View() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Viewer ¶ type Viewer struct { IsFocused bool Height int Width int Viewport viewport.Model Ready bool Path string } func NewViewer ¶ func NewViewer(w int, h int) *Viewer func (*Viewer) Header ¶ func (m *Viewer) Header() string func (Viewer) Init ¶ func (m Viewer) Init() tea.Cmd func (*Viewer) ReadFile ¶ func (m *Viewer) ReadFile() string func (*Viewer) RenderMarkdown ¶ func (m *Viewer) RenderMarkdown(md string, width int) string func (*Viewer) Update ¶ func (m *Viewer) Update(msg tea.Msg) (tea.Model, tea.Cmd) func (Viewer) View ¶ func (m Viewer) View() string Source Files ¶ View all Source files viewer.go Click to show internal directories. Click to hide internal directories.