func (t UnitTag) Number() int {
	if i := strings.LastIndex(t.name, "-"); i > 0 {
		num, _ := strconv.Atoi(t.name[i+1:])
		return num
	}
	return 0
}
// Number returns the unit number from the tag, effectively the NumberSnippet from the
// validUnit regular expression.
Number returns the unit number from the tag, effectively the NumberSnippet from the
validUnit regular expression.
// Number returns the unit number from the tag effectively the NumberSnippet from the // validUnit regular expression .
func (t UnitTag) Number() int {
	if i := strings.LastIndex(t.name, "-"); i > 0 {
		num, _ := strconv.Atoi(t.name[i+1:])
		return num
	}
	return 0
}
func ( t UnitTag ) Number ( ) int { if i := strings . LastIndex ( t . name , " " ) ; i > 0 { num , _ := strconv . Atoi ( t . name [ i + 1 : ] ) return num } return 0 }
Number returns the unit number from the tag, effectively the NumberSnippet from the
validUnit regular expression.
Number returns the unit number from the tag effectively the NumberSnippet from the validUnit regular expression .