MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / GetHostname

Function GetHostname

IceFireDB-PubSub/utils/func.go:72–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70var _hostname string
71
72func 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected