...

Source file src/github.com/jedib0t/go-pretty/v6/list/writer.go

Documentation: github.com/jedib0t/go-pretty/v6/list

     1  package list
     2  
     3  import "io"
     4  
     5  // Writer declares the interfaces that can be used to setup and render a list.
     6  type Writer interface {
     7  	AppendItem(item interface{})
     8  	AppendItems(items []interface{})
     9  	Indent()
    10  	Length() int
    11  	Render() string
    12  	RenderHTML() string
    13  	RenderMarkdown() string
    14  	Reset()
    15  	SetHTMLCSSClass(cssClass string)
    16  	SetOutputMirror(mirror io.Writer)
    17  	SetStyle(style Style)
    18  	Style() *Style
    19  	UnIndent()
    20  	UnIndentAll()
    21  }
    22  
    23  // NewWriter initializes and returns a Writer.
    24  func NewWriter() Writer {
    25  	return &List{}
    26  }
    27  

View as plain text