Answers for "go contains"

Go
1

golang contains

import  "golang.org/x/exp/slices"
Posted by: Guest on April-21-2022
1

golang contains

things := []string{"foo", "bar", "baz"}
slices.Contains(things, "foo") // true
Posted by: Guest on April-21-2022
1

golang contains

go get golang.org/x/exp/slices
Posted by: Guest on April-21-2022

Browse Popular Code Answers by Language