progressbar.go
func (b *ProgressBar) SetValue(pos int) {
	b.mtx.Lock()
	defer b.mtx.Unlock()
	if pos < b.min {
		b.value = b.min
	} else if pos > b.max {
		b.value = b.max
	} else {
		b.value = pos
	}
}
func (b *ProgressBar) SetValue(pos int) {
	b.mtx.Lock()
	defer b.mtx.Unlock()
	if pos < b.min {
		b.value = b.min
	} else if pos > b.max {
		b.value = b.max
	} else {
		b.value = pos
	}
}
//----------------- own methods -------------------------
// SetValue sets new progress value. If value exceeds ProgressBar
// limits then the limit value is used