* refactor: mark pkg/strings as deprecated in favor of stdlib * format: reword deprecate notice and use doc links
9 lines
218 B
Go
9 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)
|
|
}
|