我正在寻找一种有效的方法来检查 Golang 中是否存在某个值。我知道的方法是使用 for 循环/范围。有更好的方法来做同样的事情吗?
任何帮助,将不胜感激 :)
performance dictionary go
dictionary ×1
go ×1
performance ×1