mirror of
https://github.com/jefferyjob/go-easy-utils.git
synced 2026-04-23 00:07:09 +08:00
388 B
388 B
mapUtil
Install
go get -u github.com/jefferyjob/go-easy-utils/v2/mapUtil
Import
import (
"github.com/jefferyjob/go-easy-utils/v2/mapUtil"
)
Functions
// MapKeyExists 判断map中的key是否存在
func MapKeyExists((m map[T]T2, key T)) bool
// MapValueExists 判断map中的value是否存在
func MapValueExists(m map[T2]T, value T) bool