MCPcopy Index your code
hub / github.com/SMNETSTUDIO/Groq2API / InitConfig

Function InitConfig

initialize/config.go:10–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func InitConfig() {
11 _ = godotenv.Load(".env")
12 global.Host = os.Getenv("SERVER_HOST")
13 if global.Host == "" {
14 global.Host = "0.0.0.0"
15 }
16 global.Port = os.Getenv("SERVER_PORT")
17 if global.Port == "" {
18 global.Port = os.Getenv("PORT")
19 if global.Port == "" {
20 global.Port = "8080"
21 }
22 }
23
24 global.ChinaPrompt = os.Getenv("CHINA_PROMPT")
25 global.Authorization = os.Getenv("Authorization")
26}

Callers 2

mainFunction · 0.92
initFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected