mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-24 11:55:40 +00:00
14 lines
183 B
Go
14 lines
183 B
Go
|
package strings
|
||
|
|
||
|
import "strings"
|
||
|
|
||
|
func IndexAnyRunes(s string, rs []rune) int {
|
||
|
for _, r := range rs {
|
||
|
if i := strings.IndexRune(s, r); i != -1 {
|
||
|
return i
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return -1
|
||
|
}
|