Update dependencies

This commit is contained in:
Jakob Borg
2014-03-22 21:58:10 +01:00
parent 145c8e4063
commit 75cfa4c33e
69 changed files with 2605 additions and 917 deletions

View File

@@ -4,6 +4,7 @@ import (
"os"
)
// Envs
const (
Dev string = "development"
Prod string = "production"
@@ -11,11 +12,14 @@ const (
)
// Env is the environment that Martini is executing in. The MARTINI_ENV is read on initialization to set this variable.
var Env string = Dev
var Env = Dev
func init() {
e := os.Getenv("MARTINI_ENV")
func setENV(e string) {
if len(e) > 0 {
Env = e
}
}
func init() {
setENV(os.Getenv("MARTINI_ENV"))
}