MCPcopy Create free account
hub / github.com/kataras/iris / parse

Function parse

_examples/database/mongodb/env/env.go:22–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20)
21
22func parse() {
23 Port = getDefault("PORT", "8080")
24 DSN = getDefault("DSN", "mongodb://localhost:27017")
25
26 log.Printf("• Port=%s\n", Port)
27 log.Printf("• DSN=%s\n", DSN)
28}
29
30// Load loads environment variables that are being used across the whole app.
31// Loading from file(s), i.e .env or dev.env

Callers 1

LoadFunction · 0.85

Calls 1

getDefaultFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…