Bism Allah

This commit is contained in:
bloeys
2022-06-30 06:26:03 +04:00
parent 96b99a7e46
commit d66ecef688
5 changed files with 33 additions and 0 deletions

11
assert/assert.go Executable file
View File

@ -0,0 +1,11 @@
package assert
import (
"github.com/bloeys/nterm/consts"
)
func T(check bool, msg string) {
if consts.Mode_Debug && !check {
panic("Assert failed: " + msg)
}
}

7
consts/consts_debug.go Executable file
View File

@ -0,0 +1,7 @@
//go:build !release
package consts
const (
Mode_Debug = true
)

7
consts/consts_release.go Executable file
View File

@ -0,0 +1,7 @@
//go:build release
package consts
const (
Mode_Debug = false
)

3
go.mod Executable file
View File

@ -0,0 +1,3 @@
module github.com/bloeys/nterm
go 1.18

5
main.go Executable file
View File

@ -0,0 +1,5 @@
package main
func main() {
println("Hi!")
}