doc: add go playground demo

This commit is contained in:
dudaodong committed 2023-08-01 11:01:57 +08:00
1 parent 72924d4486
commit bb563724c7
9 files changed
+131 -42

No files matched your search

+1 -1
View File
@@ -298,7 +298,7 @@ func MapValues[K comparable, V any, T any](m map[K]V, iteratee func(key K, value
// fmt.Println("map has key baz")
// }
//
// Play: todo
// Play: https://go.dev/play/p/isZZHOsDhFc
func HasKey[K comparable, V any](m map[K]V, key K) bool {
_, haskey := m[key]
return haskey