utils

package
v0.0.0-...-26d813d Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

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

func NewReporter

func NewReporter(file string) *Reporter

func (*Reporter) Close

func (r *Reporter) Close() error

func (*Reporter) NewTableWriter

func (r *Reporter) NewTableWriter() *Table

func (*Reporter) Open

func (r *Reporter) Open() error

func (*Reporter) Render

func (r *Reporter) Render()

func (*Reporter) WriteLine

func (r *Reporter) WriteLine(name string) error

type Table

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

func (*Table) AddHeader

func (r *Table) AddHeader(element []string)

func (*Table) AddRow

func (r *Table) AddRow(elements []string)

func (*Table) RenderTable

func (r *Table) RenderTable()

func (*Table) SetTitle

func (r *Table) SetTitle(title string)

func (*Table) WriteLine

func (r *Table) WriteLine(name string) error

Jump to

Keyboard shortcuts

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