Run this:
$ go get github.com/ankddev/conemu-progressbar-go
Then, import in your code:
import "github.com/ankddev/conemu-progressbar-go"
And enjoy!
Functions:
ClearProgress
clears progress via sending sequence with 0 state
ClearProgress()
SetIndeterminateProgress
sets indeterminate progress state
SetIndeterminateProgress()
SetProgress
sets progress with default state
err := SetProgress(80)
if err != nil {
fmt.Println(err.Error())
}
Returns error if progress
< 0
or > 100
SetErrorProgress
sets progress with error state
err := SetErrorProgress(50)
if err != nil {
fmt.Println(err.Error())
}
Returns error if progress
< 0
or > 100
SetWarningProgress
sets progress with warning state
err := SetWarningProgress(0)
if err != nil {
fmt.Println(err.Error())
}
Returns error if progress
< 0
or > 100
- Fork repository
- Clone your fork
- Create changes
- Run tests with
$ go test
- Commit and push changes
- Create pull request
- codewars-api-rs - Rust library for Codewars API
- envfetch - Lightweight crossplatform CLI tool for working with environment variables
- terminal-go - Go library for working with ANSI/VT terminal sequences
- zapret-discord-youtube - Zapret build for Windows for fixing Discord and YouTube in Russia or othher services