Sprawdź ciąg zawiera Golang
import (
"strings"
)
strings.Contains("something", "some") // true
Shy Swiftlet
import (
"strings"
)
strings.Contains("something", "some") // true
import ("strings");
strins.Contains("str", "s");
import "golang.org/x/exp/slices"
things := []string{"foo", "bar", "baz"}
slices.Contains(things, "foo") // true
go get golang.org/x/exp/slices