Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultPageWidth is the default width of a page. DefaultPageWidth int = 80 // DefaultPageHeight is the default height of a page. DefaultPageHeight int = 24 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
func NewDocument ¶
func NewDocument() *Document
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
Page is a type that represents a page of a document.
func (*Page) View ¶
func (p *Page) View() ([]*RenderedPage, error)
type RenderedPage ¶
type RenderedPage struct {
// contains filtered or unexported fields
}
RenderedPage is a type that represents a page of a document.
func NewRenderedPage ¶
func NewRenderedPage(render *fss.Render, pageNumber, subPageNumber int) *RenderedPage
Click to show internal directories.
Click to hide internal directories.