~poldi1405/go-indicators

70328fc1727c4438fb6c95e759bfd35aebb65892 — Moritz Poldrack 10 months ago a3b385e master v1.2.0
add three new progress styles
1 files changed, 11 insertions(+), 7 deletions(-)

M progress/styles.go
M progress/styles.go => progress/styles.go +11 -7
@@ 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