golang判断key是否在map中

if _, ok := map[key]; ok {
//存在
}

  

原文地址:https://www.cnblogs.com/liujie-php/p/11562937.html