~poldi1405/go-indicators

68277c2195635685672c138c7f5de26393d66094 — Moritz Poldrack 1 year, 9 months ago ee3f476
fixed additional progress examples
1 files changed, 5 insertions(+), 2 deletions(-)

M progress/doc_test.go
M progress/doc_test.go => progress/doc_test.go +5 -2
@@ 9,12 9,15 @@ func Example() {
// The easiest way to get a progressbar is as follows
func Example_styled() {
	var p Progress
	p.SetStyle("")
	p.SetStyle("parallelogram")
	p.GetBar(275, 346)
}

// The easiest way to get a progressbar is as follows
func Example() {
func Example_customStyle() {
	var p Progress

	DefineStyle("my-style", []string{"○", "◔", "◑", "◕", "●"})
	p.SetStyle("my-style")
	p.GetBar(275, 346)
}