Hostname: Difference between revisions

add entry for Go
(add entry for Go)
Line 112:
print *, name
end program HostTest</lang>
 
=={{header|Go}}==
<lang Go>package main
 
import (
"fmt"
"os"
)
 
func main(){
host, _ := os.Hostname()
fmt.Printf("hostname: %s\n", host);
}</lang>
 
=={{header|Groovy}}==
Anonymous user