io

package
v1.16.6 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: BSD-4-Clause, MIT Imports: 6 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bold added in v1.16.6

func Bold(s string) string

func BoldBlue added in v1.16.6

func BoldBlue(s string) string

func BoldRed added in v1.16.6

func BoldRed(s string) string

func CopyWithFirstReadChan added in v1.16.6

func CopyWithFirstReadChan(firstReadDone chan struct{}) func(io.Writer, io.Reader) (int64, error)

func CopyWithTimeout added in v1.16.6

func CopyWithTimeout(timeout time.Duration) func(io.Writer, io.Reader) (int64, error)

func Error

func Error(args ...interface{})

func Errorf added in v1.16.6

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

func Gray added in v1.16.6

func Gray(s string) string

func Green added in v1.16.6

func Green(s string) string

func Indent

func Indent(data string, level int) string

func Info

func Info(args ...interface{})

func Infof

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

func LightGray added in v1.16.6

func LightGray(s string) string

func Status

func Status(args ...interface{})

func Statusf

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

func Warning

func Warning(args ...interface{})

func Warningf added in v1.16.6

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

func Yellow added in v1.16.6

func Yellow(s string) string

Types

type Spinner added in v1.16.6

type Spinner struct {
	PostHook func()
	// contains filtered or unexported fields
}

func NewSpinner added in v1.16.6

func NewSpinner(writer io.Writer) *Spinner

func NewSpinnerWithStopChan added in v1.16.6

func NewSpinnerWithStopChan(writer io.Writer, stop chan struct{}) *Spinner

func (*Spinner) Start added in v1.16.6

func (s *Spinner) Start()

func (*Spinner) Stop added in v1.16.6

func (s *Spinner) Stop()

Jump to

Keyboard shortcuts

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