1 2 3 4 5 6 7 8
package internal func WidthForBarFiller(reqWidth, available int) int { if reqWidth <= 0 || reqWidth >= available { return available } return reqWidth }