output

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePrinter

func ChangePrinter(printer Printer)

func NewProgress

func NewProgress(loadingText, finishedText string, showCount bool) *progress

func Printf

func Printf(format string, args ...interface{})

Types

type ConsolePrinter

type ConsolePrinter struct{}

func NewConsolePrinter

func NewConsolePrinter() *ConsolePrinter

func (*ConsolePrinter) Printf

func (c *ConsolePrinter) Printf(format string, args ...interface{})

type MockProgress

type MockProgress struct {
	mock.Mock
}

MockProgress is an autogenerated mock type for the Progress type

func (*MockProgress) Inc

func (_m *MockProgress) Inc()

Inc provides a mock function with given fields:

func (*MockProgress) Start

func (_m *MockProgress) Start()

Start provides a mock function with given fields:

func (*MockProgress) Stop

func (_m *MockProgress) Stop()

Stop provides a mock function with given fields:

func (*MockProgress) Val

func (_m *MockProgress) Val() uint64

Val provides a mock function with given fields:

type Printer

type Printer interface {
	Printf(format string, args ...interface{})
}

type Progress

type Progress interface {
	Start()
	Stop()
	Inc()
	Val() uint64
}

type ProgressOptions

type ProgressOptions struct {
	LoadingText  string
	FinishedText string
	ShowCount    bool
}

type VoidPrinter

type VoidPrinter struct{}

func (*VoidPrinter) Printf

func (v *VoidPrinter) Printf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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