func (p *Progress) SetPercent(percent float64) {
	p.mutex.Lock()
	defer p.mutex.Unlock()

	if percent < 0 {
		percent = 0
	} else if percent > 1 {
		percent = 1
	}

	p.percent = percent
	p.updated()
}
// SetPercent sets the progress percent directly. This value will be
// overwritten if Indefinite, SetTotal, Increment or SetProcessed is called.
// Constrains the percent value between 0 and 1, inclusive.
SetPercent sets the progress percent directly. This value will be
overwritten if Indefinite, SetTotal, Increment or SetProcessed is called.
Constrains the percent value between 0 and 1, inclusive.
// SetPercent sets the progress percent directly . This value will be // overwritten if Indefinite SetTotal Increment or SetProcessed is called . // Constrains the percent value between 0 and 1 inclusive .
func (p *Progress) SetPercent(percent float64) {
	p.mutex.Lock()
	defer p.mutex.Unlock()
	if percent < 0 {
		percent = 0
	} else if percent > 1 {
		percent = 1
	}
	p.percent = percent
	p.updated()
}
func ( p * Progress ) SetPercent ( percent float64 ) { p . mutex . Lock ( ) defer p . mutex . Unlock ( ) if percent < 0 { percent = 0 } else if percent > 1 { percent = 1 } p . percent = percent p . updated ( ) }
SetPercent sets the progress percent directly.
SetPercent sets the progress percent directly .