task2 backend

This commit is contained in:
2020-01-04 12:37:56 +01:00
parent ecf2a0a2dd
commit 6cfe7d338a
9 changed files with 565 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
package env
import (
"fmt"
"os"
)
var (
Prefix = "CFG"
IsDevelopment = len(os.Getenv("DEBUG")) > 0
ConfigPath = os.Getenv(fmt.Sprintf("%s_PATH", Prefix))
ConfigName = os.Getenv(fmt.Sprintf("%s_NAME", Prefix))
)