golang判斷key是否在map中

if _, ok := map[key]; ok {
//存在
}
相關文章
相關標籤/搜索