sudo add-apt-repository ppa:gophers/go sudo apt-get update sudo apt-get install golang-stableTo check if the installation went ok, I run the following code
package main
import "fmt"
func main() {
fmt.Printf("Hello, Go!\n")
}
doing this:
$ go run hello.go Hello, Go!And that's all.
No comments:
Post a Comment