File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ func StartNew(title string) *Spinner {
5959func (s * Spinner ) Start () * Spinner {
6060 goos := runtime .GOOS
6161 if goos == "windows" { // Show title without animation on Windows
62- fmt .Print (s .Title )
62+ fmt .Println (s .Title )
6363 return s
6464 }
6565
@@ -98,13 +98,13 @@ func (s *Spinner) Stop() {
9898// Success gives success feedback for users and stops the spinner execution
9999func (s * Spinner ) Success (msg string ) {
100100 s .Stop ()
101- fmt .Printf ( " \r %s \n " , msg )
101+ fmt .Println ( msg )
102102}
103103
104104// Error gives error feedback for users and stops the spinner execution
105105func (s * Spinner ) Error (err error ) {
106106 s .Stop ()
107- fmt .Printf ( " \r %s \n " , err )
107+ fmt .Println ( err )
108108}
109109
110110// animate runs the template animation
You can’t perform that action at this time.
0 commit comments