diff --git a/debug_off.go b/debug_off.go new file mode 100644 index 0000000..18df715 --- /dev/null +++ b/debug_off.go @@ -0,0 +1,6 @@ +//go:build !debug + +package appx + +// IsDebugBuild reports whether compilation was with `-tags=debug` flag. +const IsDebugBuild = false diff --git a/debug_on.go b/debug_on.go new file mode 100644 index 0000000..8ae6c96 --- /dev/null +++ b/debug_on.go @@ -0,0 +1,6 @@ +//go:build debug + +package appx + +// IsDebugBuild reports whether compilation was with `-tags=debug` flag. +const IsDebugBuild = true