1 Star 0 Fork 1

技术狼/go-fun

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bool.go 330 Bytes
一键复制 编辑 原始数据 按行查看 历史
技术狼 提交于 2年前 . no message
/*
// @title: 布尔相关函数
// @auth: 技术狼(jishulang.com)
*/
package fun
// @title: 变量是否布尔类型
// @param: 变量(interface)
// @return: true/false(bool)
// @description:
// @date: 2022/7/3 21:40
func IsBool(variable interface{}) bool {
if GetType(variable) == "bool" {
return true
}
return false
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/jishulangcom/go-fun.git
git@gitee.com:jishulangcom/go-fun.git
jishulangcom
go-fun
go-fun
v0.0.4

搜索帮助