GO Lang Program to print Hello World From Variable
Program
package main
import "fmt"
func main(){
var hello = "Hello World!!!"
fmt.Println(hello)
}
Output
$ go build hello-world-from-variable.go
$ ./hello-world-from-variable
Hello World!!!
Program
package main
import "fmt"
func main(){
var hello = "Hello World!!!"
fmt.Println(hello)
}
Output
$ go build hello-world-from-variable.go
$ ./hello-world-from-variable
Hello World!!!