From c183998316ee09dc929c7d9a55805ee0b678abeb Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Sun, 23 Apr 2023 23:08:22 +0200 Subject: [PATCH] Add debug tag --- debug_off.go | 6 ++++++ debug_on.go | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 debug_off.go create mode 100644 debug_on.go 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