An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org
Top 7.0% dependent packages on proxy.golang.org

proxy.golang.org : github.com/artyom/spinner

Package spinner implements simple "progress spinner" for terminal output. Spinner expects to have exclusive access to underlying *os.File, that nothing else is writing there while spinner is in use, otherwise output would be broken. If provided *os.File (usually os.Stdout or os.Sterr) is not attached to a terminal, spinner outputs nothing, that makes it safe to redirect program output to files, pipes, etc. Spinner can either be used manually, by first creating it with New function, then periodically calling Spin() method on it to refresh output and finally finishing with Clear() method call to clean output; or package-level Spin shortcut function can be used to launch background goroutine that handles output refresh.

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/artyom/spinner
Keywords: cli , command-line , terminal
License: MIT
Latest release: 5 months ago
First release: almost 6 years ago
Namespace: github.com/artyom
Dependent packages: 1
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago

    Loading...
    Readme
    Loading...