Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

# slices

Never write a function to tell whether a string slice contains a string again.

## Usage

```go
package main

import (
"fmt"

"github.com/rumpl/slices"
)

func main() {
fmt.Println(slices.Contains([]string{"a", "b", "c"}, "d")) // Outputs: false
}
```