diff options
| author | Shulhan <ms@kilabit.info> | 2024-02-21 01:51:22 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-02-21 01:51:34 +0700 |
| commit | f08f1c15ff863d2829af8be8ddf392e9241d0f89 (patch) | |
| tree | 1aa0066384ca66345cb526103c4b39797f30aa18 /environment.go | |
| parent | e8d3716995e9229a61a32894689c379e22475420 (diff) | |
| download | gorankusu-f08f1c15ff863d2829af8be8ddf392e9241d0f89.tar.xz | |
all: move reading GORANKUSU_DEV environment to [Environment.IsDevelopment]
Diffstat (limited to 'environment.go')
| -rw-r--r-- | environment.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/environment.go b/environment.go index 6b88b3e..ac9b602 100644 --- a/environment.go +++ b/environment.go @@ -58,6 +58,9 @@ type Environment struct { // zero. MaxAttackDuration time.Duration `ini:"gorankusu::max_attack_duration"` + // IsDevelopment if true run gorankusu in testing mode. + IsDevelopment bool + mtx sync.Mutex } |
