1 Star 0 Fork 0

tomatomeatman/GolangRepository

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
MapUtil.go 331 Bytes
一键复制 编辑 原始数据 按行查看 历史
laowei 提交于 2024-07-15 14:55 +08:00 . bricks2准备
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
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/tomatomeatman/golang-repository.git
git@gitee.com:tomatomeatman/golang-repository.git
tomatomeatman
golang-repository
GolangRepository
fed9db1a323d

搜索帮助