basic

command
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 2 Imported by: 0

README

Basic usage

package main

import (
	"progressbar"
	"time"
)

func main() {
	bar := progressbar.New(100)
	bar.SetTheme(progressbar.Theme{
		GraphType:  "#",
		GraphStart: "|",
		GraphEnd:   "|",
	})
	for i := 0; i < 100; i++ {
		bar.Add(1)
		time.Sleep(100 * time.Millisecond)
	}
}

Basic bar

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL