glob/match/util.go

12 lines
152 B
Go
Raw Normal View History

2018-02-16 17:36:02 +03:00
package match
func minLen(ms []Matcher) (min int) {
for i, m := range ms {
n := m.MinLen()
if i == 0 || n < min {
min = n
}
}
return min
}