master
Kevin Wan 4 years ago committed by GitHub
parent 0d7f1d23b4
commit 5071736ab4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,10 +19,11 @@ func Untitle(s string) string {
}
func Index(slice []string, item string) int {
for i, _ := range slice {
for i := range slice {
if slice[i] == item {
return i
}
}
return -1
}

Loading…
Cancel
Save