From b29205e26aa949f3baf026abbd4a53458e597ce7 Mon Sep 17 00:00:00 2001 From: kevin olson Date: Thu, 7 Mar 2024 15:50:40 -0600 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20IsTesting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setting/setting.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setting/setting.go b/setting/setting.go index 95a3ab2..c7b5bd8 100644 --- a/setting/setting.go +++ b/setting/setting.go @@ -35,3 +35,7 @@ func IsStaging() bool { func IsProduction() bool { return env("APP_ENV", "dev") == "production" } + +func IsTesting() bool { + return env("APP_ENV", "dev") == "testing" +}