1 Star 0 Fork 0

simplexyz / simpleutil-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
assert.go 193 Bytes
一键复制 编辑 原始数据 按行查看 历史
李文建 提交于 2023-11-18 17:05 . 初始提交
package util
import "fmt"
func Assert(b bool, text string) {
if b {
panic(text)
}
}
func Assertf(b bool, format string, args ...any) {
if b {
panic(fmt.Sprintf(format, args...))
}
}
Go
1
https://gitee.com/simplexyz/simpleutil-go.git
git@gitee.com:simplexyz/simpleutil-go.git
simplexyz
simpleutil-go
simpleutil-go
7f2d1a50c24f

搜索帮助

53164aa7 5694891 3bd8fe86 5694891