golang判断key是否在map中

if _, ok := map[key]; ok {
//存在
}
相关文章
相关标签/搜索