Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: use slices.Contains according to the TODO comment #2066

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

yuki0920
Copy link
Contributor

I used slices.Contains according to the TODO comment.

// TODO replace by slices.Contains when experimental package will be merged to stdlib
// https://pkg.go.dev/golang.org/x/exp/slices#Contains

I used `slices.Contains` according to the TODO comment.

```
// TODO replace by slices.Contains when experimental package will be merged to stdlib
// https://pkg.go.dev/golang.org/x/exp/slices#Contains
```
@yuki0920 yuki0920 marked this pull request as ready for review June 30, 2024 02:32
@jackc jackc merged commit dd71547 into jackc:master Jul 1, 2024
14 checks passed
@jackc
Copy link
Owner

jackc commented Jul 1, 2024

Thanks. I also updated the go.mod file to represent that pgx required Go 1.21+.

@yuki0920 yuki0920 deleted the use-slices-contains branch July 2, 2024 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants