Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F136134
hostname.go
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
179 B
Subscribers
None
hostname.go
View Options
package
main
import
(
"fmt"
"os"
)
func
main
()
{
localHostName
,
err
:=
os
.
Hostname
()
if
err
!=
nil
{
panic
(
err
)
}
fmt
.
Println
(
"Local Host Name:"
,
localHostName
)
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Mon, Feb 24, 9:08 PM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15152
Default Alt Text
hostname.go (179 B)
Attached To
rST sshtunnel
Event Timeline
Log In to Comment