https://github.com/rumpl/slices
Never write a function to tell whether a string slice contains a string again.
https://github.com/rumpl/slices
Last synced: 4 months ago
JSON representation
Never write a function to tell whether a string slice contains a string again.
- Host: GitHub
- URL: https://github.com/rumpl/slices
- Owner: rumpl
- Created: 2020-08-05T08:10:36.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2020-08-05T08:20:41.000Z (almost 5 years ago)
- Last Synced: 2025-01-24T19:27:09.760Z (6 months ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# slices
Never write a function to tell whether a string slice contains a string again.
## Usage
```go
package mainimport (
"fmt""github.com/rumpl/slices"
)func main() {
fmt.Println(slices.Contains([]string{"a", "b", "c"}, "d")) // Outputs: false
}
```