Documentation ¶
Index ¶
Constants ¶
View Source
const Abyss = "█" // "ᨆ", "ᨖ"
View Source
const AlreadyShown = "ᨔ"
View Source
const BreadthExhausted = "ᨓ"
View Source
const DepthExhausted = "ᨑ"
Variables ¶
View Source
var ( DefaultPrinter = PrintContext{Indent: "\t", Width: 100, Console: ANSI} DefaultMonoPrinter = PrintContext{Indent: "\t", Width: 100, Console: Mono} )
Functions ¶
This section is empty.
Types ¶
type PrintContext ¶
type TextGlue ¶
type TextGlue struct {
Text []Textual `ko:"name=text,monadic"`
}
TextGlue is a list of textual objects which cannot be broken up at their boundary.
type TextRenderer ¶
type TextRenderer interface {
RenderText() Textual
}
type TextRubber ¶
type TextRubber struct { Header *string `ko:"name=header"` Open *string `ko:"name=open"` // e.g. "{" Close *string `ko:"name=close"` // e.g. "}" Field []Textual `ko:"name=text,monadic"` }
TextRubber is a sequence of textual objects which can render horizontally or vertically, depending on available width.
func (TextRubber) Play ¶
func (g TextRubber) Play(*runtime.Context) TextRubber
func (TextRubber) Render ¶
func (g TextRubber) Render(ctx PrintContext, w io.Writer, linePrefix string, width int)
func (TextRubber) Width ¶
func (g TextRubber) Width() int
type TextSlab ¶
type TextSlab struct {
String string `ko:"name=string,monadic"`
}
TextSlab is a verbatim/indivisible string.
type TextTile ¶
type TextTile struct {
String string `ko:"name=string,monadic"`
}
TextTile is a verbatim string printed with a highlight.
type TextualCtx ¶
Click to show internal directories.
Click to hide internal directories.