console

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: BSD-2-Clause Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flush

func Flush()

func Println

func Println(a ...interface{})

Types

type ProgressBar

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

func NewProgressBar

func NewProgressBar(prefix string, step, total int) ProgressBar

func (*ProgressBar) Step

func (pb *ProgressBar) Step()

type ProgressBarWriter

type ProgressBarWriter struct {
	Bar *pterm.ProgressbarPrinter
	// contains filtered or unexported fields
}

func NewProgressBarWriter

func NewProgressBarWriter(p string, size int64, w io.Writer) *ProgressBarWriter

func (*ProgressBarWriter) Close

func (pw *ProgressBarWriter) Close() error

func (*ProgressBarWriter) Write

func (pw *ProgressBarWriter) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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