go language code for hello world compile code example
Example 1: hello world in golang
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
Example 2: hello world golang
package main
import fmt
func main() {
fmt.Println("hello, world!")
}