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

Function init

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

Source from the content-addressed store, hash-verified

26const version = "0.0.1"
27
28func init() {
29 envFileName := ".env"
30
31 flagset := flag.CommandLine
32 flagset.StringVar(&envFileName, "env", envFileName, "the env file which web app will use to extract its environment variables")
33 flagset.Parse(os.Args[1:])
34
35 env.Load(envFileName)
36}
37
38func main() {
39 clientOptions := options.Client().SetHosts([]string{env.DSN})

Callers 1

dropzone.jsFile · 0.50

Calls 2

ParseMethod · 0.65
LoadMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…