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