Use godep

This commit is contained in:
Jakob Borg
2014-03-22 21:33:18 +01:00
parent 89399092b9
commit 52cad94e86
104 changed files with 20937 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
package martini
import (
"os"
)
const (
Dev string = "development"
Prod string = "production"
Test string = "test"
)
// Env is the environment that Martini is executing in. The MARTINI_ENV is read on initialization to set this variable.
var Env string = Dev
func init() {
e := os.Getenv("MARTINI_ENV")
if len(e) > 0 {
Env = e
}
}