Skip to content

akshaybharambe14/spinner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple Spinner with configurable speed and duration

Spinner

Example

package main

import (
    "time"

    "github.com/akshaybharambe14/spinner"
)

func main() {
    s := spinner.New(spinner.Default, 5, spinner.NoDuration)

    q := make(chan struct{})
    go func() {
        // work
        time.Sleep(time.Second * 5)
        // end
        q <- struct{}{}
    }()
    s.Start(q)
}

About

Simple spinner for golang CLI apps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages