From 70328fc1727c4438fb6c95e759bfd35aebb65892 Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Sun, 16 Apr 2023 12:06:42 +0200 Subject: [PATCH] add three new progress styles --- progress/styles.go | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/progress/styles.go b/progress/styles.go index 3f7136a..3fbc8d7 100644 --- a/progress/styles.go +++ b/progress/styles.go @@ -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 -- 2.45.2