Skip to content

Instantly share code, notes, and snippets.

@mottet-dev
Created June 23, 2019 16:08
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 mottet-dev/0d196e573606b706c6392fc1cfccd6f7 to your computer and use it in GitHub Desktop.
Save mottet-dev/0d196e573606b706c6392fc1cfccd6f7 to your computer and use it in GitHub Desktop.
Go Funk - Contains
package main
import (
"fmt"
"github.com/thoas/go-funk"
)
func main() {
result := funk.Contains([]int{1, 2, 3, 4, 5}, 3)
fmt.Println(result)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment