Documentation ¶ Index ¶ Constants type Model func New(title, content string, w, h int, wPercent, hPercent float64) Model func (m Model) Init() tea.Cmd func (m *Model) SetSize(width int, height int) func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) func (m Model) View() string Constants ¶ View Source const RENDER_LINE_MARGIN = 4 Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Model ¶ type Model struct { Viewport viewport.Model // contains filtered or unexported fields } func New ¶ func New(title, content string, w, h int, wPercent, hPercent float64) Model func (Model) Init ¶ func (m Model) Init() tea.Cmd func (*Model) SetSize ¶ func (m *Model) SetSize(width int, height int) func (Model) Update ¶ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) func (Model) View ¶ func (m Model) View() string Source Files ¶ View all Source files preview.gostyles.go Click to show internal directories. Click to hide internal directories.