Golang:测试map是否存在
摘要:
请看这个url:http://www.du52.com/text.php?id=561 if v, ok := m1["a"]; ok { fmt.Println(v) } else { fmt.Println("Key Not Found") } 阅读全文
posted @ 2014-11-27 22:21 awildfish 阅读(2904) 评论(0) 推荐(0)
posted @ 2014-11-27 22:21 awildfish 阅读(2904) 评论(0) 推荐(0)
posted @ 2014-11-27 21:42 awildfish 阅读(10979) 评论(0) 推荐(0)
posted @ 2014-11-27 10:25 awildfish 阅读(138) 评论(0) 推荐(0)