Documentation ¶
Index ¶
- Constants
- func CountFileLines(path string) (count int, err error)
- type CursorPosition
- type Option
- func BarCompleted(completed rune) Option
- func BarLabel(label string) Option
- func BarLeft(left rune) Option
- func BarLength(length int) Option
- func BarRight(right rune) Option
- func BarUncompleted(uncompleted rune) Option
- func OutputWriter(writer io.Writer) Option
- func RefreshIntervalMilliseconds(interval int) Option
- type PBar
Constants ¶
View Source
const ( TTY = "/dev/tty" // Microsoft Windows is not supported BarLengthDefault = 50 RefreshIntervalDefault = 500 * time.Millisecond BarLeftDefault = '[' BarRightDefault = ']' BarUnCompletedDefault = ' ' BarCompletedDefault = '=' )
Variables ¶
This section is empty.
Functions ¶
func CountFileLines ¶
CountFileLines count newline characters in a file
Types ¶
type CursorPosition ¶
type CursorPosition struct {
// contains filtered or unexported fields
}
type Option ¶
type Option func(*PBar)
Option is a func type received by PBar. Each one allows configuration of the PBar.
func BarCompleted ¶
func BarUncompleted ¶
func OutputWriter ¶
Click to show internal directories.
Click to hide internal directories.