()
| 14 | var HostName string |
| 15 | |
| 16 | func 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected