falun / golang-progress

It's a progress indicator for your terminal. In go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

golang-progress

What?

It's a progress indicator for your terminal apps. In go.

spinning progress indicator gif

Why?

It's cute and better than a screen full of dots.

How?

Trivially!

If you're cool with the custom animation you just call:

p := progress.NewSpinner()
p.Start("Some message")

If you want a custom animation that comes bundled with the backage then you can:

p := progress.NewSpinnerWithFrames(progress.Animation["growVertical"])
p.Start("Your message")

When your command finishes just call p.Stop() or p.Stopln()

Demo code is available here.

About

It's a progress indicator for your terminal. In go.

License:MIT License


Languages

Language:Go 100.0%