Update dependencies
This commit is contained in:
10
Godeps/_workspace/src/github.com/codegangsta/martini/env.go
generated
vendored
10
Godeps/_workspace/src/github.com/codegangsta/martini/env.go
generated
vendored
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user