Created
May 4, 2020 19:38
-
-
Save plutov/4c59b0e6b76055c04292406849ff4624 to your computer and use it in GitHub Desktop.
testable1.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func StrInSlice(slice []string, find string) bool { | |
for _, v := range slice { | |
if v == find { | |
return true | |
} | |
} | |
return false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment