go helloworld code example
Example 1: hello world in go
// First Go program
package main
import "fmt"
// Main function
func main() {
fmt.Println("!... Hello World ...!")
}
Example 2: hello world in golang
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
Example 3: go hello world
package main
import "fmt"
func main(){
fmt.Println("hello world")
}
Example 4: hello world golang
package main
import fmt
func main() {
fmt.Println("hello, world!")
}