mirror of https://github.com/gobwas/glob.git
12 lines
152 B
Go
12 lines
152 B
Go
|
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
|
||
|
}
|