printer

package
v0.77.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FprintJSON

func FprintJSON(w io.Writer, data interface{}) error

Types

type FormattedString

type FormattedString struct {
	// contains filtered or unexported fields
}

func (*FormattedString) BlueArrow

func (s *FormattedString) BlueArrow() *FormattedString

func (*FormattedString) Bold

func (s *FormattedString) Bold(str string) *FormattedString

func (*FormattedString) CheckMark

func (s *FormattedString) CheckMark() *FormattedString

func (*FormattedString) Code

func (s *FormattedString) Code(str string) *FormattedString

func (*FormattedString) CrossMark

func (s *FormattedString) CrossMark() *FormattedString

func (*FormattedString) DangerBangMark

func (s *FormattedString) DangerBangMark() *FormattedString

func (*FormattedString) DangerBold

func (s *FormattedString) DangerBold(str string) *FormattedString

func (*FormattedString) DangerText

func (s *FormattedString) DangerText(t string) *FormattedString

func (*FormattedString) GreenArrow

func (s *FormattedString) GreenArrow() *FormattedString

func (*FormattedString) InfoText

func (s *FormattedString) InfoText(t string) *FormattedString

func (*FormattedString) ListItem

func (s *FormattedString) ListItem() *FormattedString

func (*FormattedString) NextLine

func (s *FormattedString) NextLine() *FormattedString

func (*FormattedString) NextSection

func (s *FormattedString) NextSection() *FormattedString

func (*FormattedString) Pad

func (s *FormattedString) Pad() *FormattedString

Pad adds a padding that compensate the status characters. It's useful to display information on multiple lines.

func (*FormattedString) QuestionMark

func (s *FormattedString) QuestionMark() *FormattedString

func (*FormattedString) RedArrow

func (s *FormattedString) RedArrow() *FormattedString

func (*FormattedString) SuccessBold

func (s *FormattedString) SuccessBold(str string) *FormattedString

func (*FormattedString) SuccessText

func (s *FormattedString) SuccessText(t string) *FormattedString

func (*FormattedString) Text

func (s *FormattedString) Text(str string) *FormattedString

func (*FormattedString) Underline

func (s *FormattedString) Underline(str string) *FormattedString

func (*FormattedString) WarningBangMark

func (s *FormattedString) WarningBangMark() *FormattedString

func (*FormattedString) WarningText

func (s *FormattedString) WarningText(t string) *FormattedString

type InteractivePrinter

type InteractivePrinter struct {
	// contains filtered or unexported fields
}

func NewInteractivePrinter

func NewInteractivePrinter(w io.Writer) *InteractivePrinter

func (*InteractivePrinter) Print

func (p *InteractivePrinter) Print(s *FormattedString)

func (*InteractivePrinter) String

func (p *InteractivePrinter) String() *FormattedString

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL