Refactor al nuovo nome del repo anche qua
This commit is contained in:
+8
-8
@@ -5,15 +5,15 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"git.phc.dm.unipi.it/phc/website/util"
|
||||
"github.com/joho/godotenv"
|
||||
"github.com/phc-dm/phc-server/util"
|
||||
)
|
||||
|
||||
var Mode string
|
||||
var Host string
|
||||
|
||||
var GitUrl string
|
||||
var ForumUrl string
|
||||
var ChatUrl string
|
||||
var Email string
|
||||
|
||||
func loadEnv(target *string, name, defaultValue string) {
|
||||
@@ -34,16 +34,16 @@ func Load() {
|
||||
loadEnv(&Mode, "MODE", "production")
|
||||
loadEnv(&Host, "HOST", "localhost:8080")
|
||||
loadEnv(&GitUrl, "GIT_URL", "https://git.example.org")
|
||||
loadEnv(&ForumUrl, "FORUM_URL", "https://forum.example.org")
|
||||
loadEnv(&ChatUrl, "CHAT_URL", "https://chat.example.org")
|
||||
loadEnv(&Email, "EMAIL", "mail@example.org")
|
||||
}
|
||||
|
||||
func Object() util.H {
|
||||
return util.H{
|
||||
"Mode": Mode,
|
||||
"Host": Host,
|
||||
"GitUrl": GitUrl,
|
||||
"ForumUrl": ForumUrl,
|
||||
"Email": Email,
|
||||
"Mode": Mode,
|
||||
"Host": Host,
|
||||
"GitUrl": GitUrl,
|
||||
"ChatUrl": ChatUrl,
|
||||
"Email": Email,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user