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 /example.go | |
| parent | e8d3716995e9229a61a32894689c379e22475420 (diff) | |
| download | gorankusu-f08f1c15ff863d2829af8be8ddf392e9241d0f89.tar.xz | |
all: move reading GORANKUSU_DEV environment to [Environment.IsDevelopment]
Diffstat (limited to 'example.go')
| -rw-r--r-- | example.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -60,13 +60,14 @@ type Example struct { } // NewExample create, initialize, and setup an example of Gorankusu. -func NewExample(listenAddress string) (ex *Example, err error) { +func NewExample(listenAddress string, isDev bool) (ex *Example, err error) { var logp = `NewExample` var env = &Environment{ ListenAddress: listenAddress, ResultsDir: `testdata/example/`, ResultsSuffix: `example`, + IsDevelopment: isDev, } ex = &Example{} |
