()
| 71 | var _hostname string |
| 72 | |
| 73 | func GetHostname() string { |
| 74 | if _hostname != "" { |
| 75 | return _hostname |
| 76 | } |
| 77 | |
| 78 | hostname, err := os.Hostname() |
| 79 | if err != nil { |
| 80 | return "" |
| 81 | } |
| 82 | _hostname = hostname |
| 83 | return _hostname |
| 84 | } |
nothing calls this directly
no outgoing calls
no test coverage detected