Files
atom/providers/config/section_app.go
2023-01-28 11:09:11 +08:00

19 lines
276 B
Go

package config
import "app/utils"
type App struct {
Mode string
}
func (a App) IsDebug() bool {
return a.Mode == "debug"
}
func (a App) IsRelease() bool {
return a.Mode == "release"
}
func (a App) IsTesting() bool {
return a.Mode == "testing" || utils.IsInTesting()
}