MCPcopy Create free account
hub / github.com/OpenSN-Library/OpenSN-Library / init

Function init

container-base/ground-station/daemon/config/config.go:16–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14var HostName string
15
16func init() {
17 hostnameEnv, err := os.Hostname()
18 if err != nil {
19 logrus.Errorf("Get Hostname Error: %s", err.Error())
20 panic(err)
21 }
22 HostName = hostnameEnv
23 TopoInfoPath = fmt.Sprintf(TopoInfoPath, HostName)
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected