Codebase list golang-github-vbauerster-mpb / 7e44816
speedFormatter: io.WriteString Vladimir Bauer 3 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
11
22 import (
33 "fmt"
4 "io"
45 "math"
56 "time"
67
2829
2930 func (self speedFormatter) Format(st fmt.State, verb rune) {
3031 self.Formatter.Format(st, verb)
31 _, err := st.Write([]byte("/s"))
32 _, err := io.WriteString(st, "/s")
3233 if err != nil {
3334 panic(err)
3435 }