1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-04 16:20:18 +00:00

Refactoring: Move dev & prod runmodes to const

This commit is contained in:
Vitaly Velikodny
2015-12-29 21:32:37 +03:00
parent ac3a447479
commit 48fd9675ad
11 changed files with 33 additions and 21 deletions

View File

@ -24,8 +24,14 @@ import (
"github.com/astaxie/beego/logs"
)
// beego web framework version.
const VERSION = "1.5.0"
const (
// beego web framework version.
VERSION = "1.5.0"
// beego run modes
DEV = "dev"
PROD = "prod"
)
//hook function to run
type hookfunc func() error