Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 15 days 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 (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-08-05T08:20:41.000Z (over 4 years ago)
- Last Synced: 2024-11-24T20:32:31.872Z (3 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
}
```