1 Star 0 Fork 0

tomatomeatman / GolangRepository

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
MapUtil.go 347 Bytes
一键复制 编辑 原始数据 按行查看 历史
tomatomeatman 提交于 2022-10-03 00:45 . no commit message
package data
type MapUtil struct{}
//移除指定键
func (mu MapUtil) RemoveData(data map[string]interface{}, filter []string) {
for _, value := range filter {
delete(data, value)
}
}
//判断是否存在指定键
func (mu MapUtil) HasName(data map[string]interface{}, name string) bool {
_, ok := data[name]
return ok
}
Go
1
https://gitee.com/tomatomeatman/golang-repository.git
git@gitee.com:tomatomeatman/golang-repository.git
tomatomeatman
golang-repository
GolangRepository
bcb142e03580

搜索帮助

53164aa7 5694891 3bd8fe86 5694891