Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PBar ¶
type PBar struct {
// Completed actions.
Done int
// Total actions.
Total int
// Size multiplier (0.0 - 1.0).
Size float64
// Verbosity.
Verbose int
}
PBar is a progress bar instance.
func NewPBar ¶
func NewPBar() *PBar
NewPBar creates a new progress bar instance with default values.
func (*PBar) LogMsg ¶
LogMsg logs progress bar with message capabilities.
`msg` and `msgLong` may be ignored based on `pb.Verbose`.
Verbosities:
<= 0: Plain progress bar. == 1: `msg` is appended to the progress bar. >= 2: Progress bar is discarded, `msgLong` is forwarded to `fmt.Print`.
Click to show internal directories.
Click to hide internal directories.