Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 677 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 677 Bytes

Loading

The loading package is a minimal package, built to provide command-line interfaces with the ability to present a simple loading wheel to display to users on their console. As time passes, the console will be updated, simulating a "spinning" animation.

Installation

go get github.com/austintraver/loading

Usage

package main

import (
	"time"
	
	"github.com/austintraver/loading"
)

func main() {
    wheel := loading.New("%s Initializing...")
    wheel.Start()
    time.Sleep(5 * time.Second)
}