Zero cost debug assertions in Go

While I was working on my very own TUI library , I had this idea of bringing debug assertions to Go. From dart.dev : During development, use an assert statement— assert(<condition>, <optionalMessage>); —to disrupt normal execution if a boolean condition is false. In production code, assertions are ignored, and the arguments to assert aren’t evaluated. Many languages such as Rust, C and Zig have…