Y
Hacker News
new
|
ask
|
show
|
jobs
by
irq-1
2 days ago
You're right. Just for information, slices.Contains() uses the index, not a copied value.
https://cs.opensource.google/go/go/+/refs/tags/go1.26.5:src/...