https://github.com/tmc/spinner
spinner is a go package for showing terminal spinners
https://github.com/tmc/spinner
Last synced: about 1 year ago
JSON representation
spinner is a go package for showing terminal spinners
- Host: GitHub
- URL: https://github.com/tmc/spinner
- Owner: tmc
- License: mit
- Created: 2024-08-07T10:18:21.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-18T18:56:47.000Z (almost 2 years ago)
- Last Synced: 2025-03-24T09:47:12.161Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme
- License: LICENSE
Awesome Lists containing this project
README
# Spinner
Spinner is a flexible and customizable terminal spinner package for Go.
## Features
- Multiple pre-defined spinner styles
- Customizable frames, colors, and intervals
- Support for fixed and dynamic colors
- Adjustable speed and position
- Prefix and suffix text support
- Easy to use API
## Installation
```bash
go get github.com/tmc/spinner
```
## Quick Start
```go
package main
import (
"time"
"github.com/tmc/spinner"
)
func main() {
s := spinner.New()
s.Start()
time.Sleep(3 * time.Second)
s.Stop()
}