Documentation ¶
Index ¶
- Constants
- type Writer
- func (w *Writer) BeginBlock()
- func (w *Writer) BeginSubBlock()
- func (w *Writer) Clear()
- func (w *Writer) ClearBlock()
- func (w *Writer) EndBlock()
- func (w *Writer) EndSubBlock()
- func (w *Writer) FitInLine(s string) bool
- func (w *Writer) LeadingSpacesWidth() int
- func (w *Writer) NewLine()
- func (w *Writer) String() string
- func (w *Writer) Write(s string)
- func (w *Writer) WriteColor(s string, effect string)
- func (w *Writer) WriteColorWithoutLineBreak(s string, effect string)
- func (w *Writer) WriteSpaces(l int)
- func (w *Writer) WriteWithAutoLineBreak(s string)
- func (w *Writer) WriteWithAutoLineBreakWithContinueMark(s string)
- func (w *Writer) WriteWithoutLineBreak(s string)
Constants ¶
View Source
const DefaultPadding = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
type Writer struct { Flags *option.Flags Palette *color.Palette MaxWidth int Padding int Indent int IndentWidth int Title1 string Title1Effect string Title2 string Title2Effect string Column int // contains filtered or unexported fields }
func (*Writer) BeginBlock ¶
func (w *Writer) BeginBlock()
func (*Writer) BeginSubBlock ¶
func (w *Writer) BeginSubBlock()
func (*Writer) ClearBlock ¶
func (w *Writer) ClearBlock()
func (*Writer) EndSubBlock ¶
func (w *Writer) EndSubBlock()
func (*Writer) LeadingSpacesWidth ¶
func (*Writer) WriteColor ¶
func (*Writer) WriteColorWithoutLineBreak ¶
func (*Writer) WriteSpaces ¶
func (*Writer) WriteWithAutoLineBreak ¶
func (*Writer) WriteWithAutoLineBreakWithContinueMark ¶
func (*Writer) WriteWithoutLineBreak ¶
Click to show internal directories.
Click to hide internal directories.