@@ 5,13 5,17 @@ import "sync"
// ProgressStyles contains the styles of the progressbars. Custom styles can
// easily be appended and used.
var ProgressStyles = map[string][]string{
- "double": []string{" ", "="},
- "double-": []string{" ", "-", "="},
- "single": []string{" ", "-"},
- "parallelogram": []string{"▱", "▰"},
- "spaced-blocks": []string{"▯", "▮"},
- "block": []string{" ", "▏", "▎", "▍", "▌", "▋", "▊", "▉", "█"},
- "": []string{" ", "="},
+ "double": {" ", "="},
+ "double-": {" ", "-", "="},
+ "single": {" ", "-"},
+ "parallelogram": {"▱", "▰"},
+ "spaced-blocks": {"▯", "▮"},
+ "block": {" ", "▏", "▎", "▍", "▌", "▋", "▊", "▉", "█"},
+ "blocky": {" ", "▖", "▌", "▛", "█"},
+ "block-gray": {"▒", "█"},
+ "braille": {"⠀", "⠁", "⠃", "⠇", "⡇", "⣇", "⣧", "⣷", "⣿"},
+ "line": {"─", "╾", "━"},
+ "": {" ", "="},
}
// progressStyleMtx locks the map so there are no concurrent map-accesses