spinner.go
func (s *Spinner) Stop() {
	s.lock.Lock()
	defer s.lock.Unlock()
	if s.active {
		s.active = false
		if s.HideCursor && runtime.GOOS != "windows" {
			// makes the cursor visible
			fmt.Print("\033[?25h")
		}
		s.erase()
		if s.FinalMSG != "" {
			fmt.Fprintf(s.Writer, s.FinalMSG)
		}
		s.stopChan <- struct{}{}
	}
}
func (s *Spinner) Stop() {
	s.lock.Lock()
	defer s.lock.Unlock()
	if s.active {
		s.active = false
		if s.HideCursor && runtime.GOOS != "windows" {
			// makes the cursor visible
			fmt.Print("\033[?25h")
		}
		s.erase()
		if s.FinalMSG != "" {
			fmt.Fprintf(s.Writer, s.FinalMSG)
		}
		s.stopChan <- struct{}{}
	}
}
func ( s * Spinner ) Stop ( ) { s . lock . Lock ( ) defer s . lock . Unlock ( ) if s . active { s . active = false if s . HideCursor && runtime . GOOS != " " { // makes the cursor visible fmt . Print ( " \033 " ) } s . erase ( ) if s . FinalMSG != " " { fmt . Fprintf ( s . Writer , s . FinalMSG ) } s . stopChan <- struct { } { } } }
// Stop stops the indicator
Stop stops the indicator