IsProdMode returns true if the application is running in production mode.
()
| 18 | |
| 19 | // IsProdMode returns true if the application is running in production mode. |
| 20 | func IsProdMode() bool { |
| 21 | return strings.EqualFold(App.RunMode, "prod") |
| 22 | } |
| 23 | |
| 24 | var ( |
| 25 | appPath string |
no outgoing calls