Documentation
¶
Index ¶
- Variables
- func Clean(char rune) rune
- func ExtensionByType(typ string) (string, error)
- func IsBinary(buf []byte) bool
- func Percent(w io.Writer, value, total float64) (int, error)
- func PercentInt(w io.Writer, value, total int) (int, error)
- func PercentInt64(w io.Writer, value, total int64) (int, error)
- func PercentUint64(w io.Writer, value, total uint64) (int, error)
- func Trim(w io.Writer, s string) (int, error)
- type InvalidSlice
- type Logger
- type Progress
- type Symbols
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Number = Symbols{"", " K", " M", " B", " T"} Rate = Symbols{" B/s", " kB/s", " MB/s", " GB/s", " TB/s"} Size = Symbols{" B", " kB", " MB", " GB", " TB"} )
View Source
var Log = Logger{Writer: os.Stderr}
Functions ¶
func ExtensionByType ¶ added in v1.16.6
github.com/golang/go/issues/22318
func PercentInt64 ¶ added in v1.15.9
func PercentUint64 ¶ added in v1.18.1
Types ¶
type InvalidSlice ¶ added in v1.16.7
type InvalidSlice struct {
Index, Length int
}
func (InvalidSlice) Error ¶ added in v1.16.7
func (i InvalidSlice) Error() string
Click to show internal directories.
Click to hide internal directories.