Skip to content

Instantly share code, notes, and snippets.

@plutov
Created May 4, 2020 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plutov/4c59b0e6b76055c04292406849ff4624 to your computer and use it in GitHub Desktop.
Save plutov/4c59b0e6b76055c04292406849ff4624 to your computer and use it in GitHub Desktop.
testable1.go
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