diff --git a/example/singleBar/main.go b/example/singleBar/main.go index bd3fae6..a176886 100644 --- a/example/singleBar/main.go +++ b/example/singleBar/main.go @@ -15,6 +15,9 @@ // If you don't plan to cancel, feed with nil // otherwise provide context.Context, see cancel example p := mpb.New(nil) + // Set custom format, the default one is "[=>-]" + p.Format("╢▌▌░╟") + bar := p.AddBar(100).PrependName(name, 0).AppendPercentage() for i := 0; i < 100; i++ {