~poldi1405/go-indicators

a6bc81f8b43628cdef9e4592f22df0093cf6c1a1 — Moritz Poldrack 1 year, 9 months ago 178e7af
made main.go act as shown in examples
2 files changed, 3 insertions(+), 3 deletions(-)

M main.go
M spinner/doc_test.go
M main.go => main.go +1 -1
@@ 68,7 68,7 @@ func basicexample() {

func multispinner() {
	var s1, s2, s3 spinner.Spinner
	s1.SetStyle("line")
	//s1.SetStyle("line")
	s2.SetStyle("windows-10")
	s3.SetStyle("clock")


M spinner/doc_test.go => spinner/doc_test.go +2 -2
@@ 20,7 20,7 @@ func Example() {
}

// This shows the same spinner 3 times and cleans up afterwards
func Example_Multiuse() {
func Example_multiuse() {
	var s1 Spinner
	s1.SetStyle("bouncing-bar")



@@ 34,7 34,7 @@ func Example_Multiuse() {
}

// This shows how to use multiple different spinners at once.
func Example_MultipleSpinner() {
func Example_multipleSpinner() {
	var s1, s2, s3 Spinner
	// note that s1 has not been assigned a style, therefore the default style
	// is used