Files
nmage/asserts/asserts.go
2022-01-08 17:38:35 +04:00

19 lines
299 B
Go
Executable File

package asserts
import (
"github.com/bloeys/nmage/consts"
"github.com/bloeys/nmage/logging"
)
func True(check bool, msg string) {
if consts.Debug && !check {
logging.ErrLog.Panicln(msg)
}
}
func False(check bool, msg string) {
if consts.Debug && check {
logging.ErrLog.Panicln(msg)
}
}