mirror of
https://github.com/zitadel/oidc.git
synced 2025-12-21 10:19:43 -06:00
* refactor: mark pkg/strings as deprecated in favor of stdlib * format: reword deprecate notice and use doc links
10 lines
218 B
Go
10 lines
218 B
Go
package strings
|
|
|
|
import "slices"
|
|
|
|
// Deprecated: Use standard library [slices.Contains] instead.
|
|
func Contains(list []string, needle string) bool {
|
|
// TODO(v4): remove package.
|
|
return slices.Contains(list, needle)
|
|
}
|