func BarPriority(priority int) BarOption {
	return func(s *bState) {
		s.priority = priority
	}
}
BarPriority sets bar's priority.
Zero is highest priority, i.e. bar will be on top.
If `BarReplaceOnComplete` option is supplied, this option is ignored.
package mpb
import (
	"github.com/vbauerster/mpb/decor"
)
type BarOption func(*bState)
func AppendDecorators(appenders ...decor.Decorator) BarOption {
	return func(s *bState) {
		for _, decorator := range appenders {
			if ar, ok := decorator.(decor.AmountReceiver); ok {
				s.amountReceivers = append(s.amountReceivers, ar)
			}
			if sl, ok := decorator.(decor.ShutdownListener); ok {
				s.shutdownListeners = append(s.shutdownListeners, sl)
			}
			s.aDecorators = append(s.aDecorators, decorator)
		}
	}
}
func PrependDecorators(prependers ...decor.Decorator) BarOption {
	return func(s *bState) {
		for _, decorator := range prependers {
			if ar, ok := decorator.(decor.AmountReceiver); ok {
				s.amountReceivers = append(s.amountReceivers, ar)
			}
			if sl, ok := decorator.(decor.ShutdownListener); ok {
				s.shutdownListeners = append(s.shutdownListeners, sl)
			}
			s.pDecorators = append(s.pDecorators, decorator)
		}
	}
}
func BarTrimLeft() BarOption {
	return func(s *bState) {
		s.trimLeftSpace = true
	}
}
func BarTrimRight() BarOption {
	return func(s *bState) {
		s.trimRightSpace = true
	}
}
func BarTrim() BarOption {
	return func(s *bState) {
		s.trimLeftSpace = true
		s.trimRightSpace = true
	}
}
func BarID(id int) BarOption {
	return func(s *bState) {
		s.id = id
	}
}
func BarDynamicTotal() BarOption {
	return func(s *bState) {
		s.dynamic = true
	}
}
func BarAutoIncrTotal(trigger, n int64) BarOption {
	return func(s *bState) {
		s.totalAutoIncrTrigger = trigger
		s.totalAutoIncrBy = n
	}
}
func BarRemoveOnComplete() BarOption {
	return func(s *bState) {
		s.removeOnComplete = true
	}
}
func BarReplaceOnComplete(runningBar *Bar) BarOption {
	return func(s *bState) {
		s.runningBar = runningBar
	}
}
func BarClearOnComplete() BarOption {
	return func(s *bState) {
		s.barClearOnComplete = true
	}
}