func (p *ProgressBar) Inc() {
	cur := atomic.AddInt64(&p.current, 1)
	if max := atomic.LoadInt64(&p.total); cur > max {
		atomic.StoreInt64(&p.total, cur)
	}
	p.print()
}
Inc adds one to the progress
package termio
import (
	"fmt"
	"math"
	"strings"
	"sync/atomic"
	"syscall"
	"time"
	"github.com/dustin/go-humanize"
	"github.com/fatih/color"
	"golang.org/x/term"
)
const (
	fps = 25
)
var (
	now = time.Now
)
type ProgressBar struct {
	total   int64
	current int64
	mutex   chan struct{}
	lastUpd time.Time
	Hidden bool
	Bytes  bool
}
func NewProgressBar(total int64) *ProgressBar {
	return &ProgressBar{
		total:   total,
		current: 0,
		mutex:   make(chan struct{}, 1),
	}
}
func (p *ProgressBar) Add(v int64) {
	cur := atomic.AddInt64(&p.current, v)
	if max := atomic.LoadInt64(&p.total); cur > max {
		atomic.StoreInt64(&p.total, cur)
	}
	p.print()
}