判断数据是否在map中
(maps map[int]bool, key int)
| 749 | |
| 750 | // 判断数据是否在map中 |
| 751 | func InMap(maps map[int]bool, key int) (ret bool) { |
| 752 | if _, ok := maps[key]; ok { |
| 753 | return true |
| 754 | } |
| 755 | return |
| 756 | } |
| 757 | |
| 758 | // 从HTML中获取text |
| 759 | func GetTextFromHtml(htmlStr string) (txt string) { |
nothing calls this directly
no outgoing calls
no test coverage detected