2
0
mirror of https://git.numenor-labs.us/dsfx.git synced 2025-05-30 02:07:55 +00:00
2025-03-09 16:26:25 -04:00

11 lines
212 B
Go

package assert
import "fmt"
// Assert panics if the given truth value is false, with the given message.
func Assert(truth bool, msg string) {
if !truth {
panic(fmt.Sprintf("Assertion Failed: %s", msg))
}
}