General refactoring

This commit is contained in:
Manu Mtz-Almeida
2014-10-08 21:37:26 +02:00
parent 94415333ed
commit 07a3961941
7 changed files with 223 additions and 180 deletions
+4
View File
@@ -42,6 +42,10 @@ func Mode() string {
return mode_name
}
func IsDebugging() bool {
return gin_mode == debugCode
}
func init() {
value := os.Getenv(GIN_MODE)
if len(value) == 0 {