Difficulty: beginner
Estimated Time: 2 minutes

GO is a language made in Google. It is called golang for search purposes as go is too ambiguous.


You have created, compiled and run your first GO code

Hello World in GO

Step 1 of 4

Step 1 - Write hello-world.go

All programming tutorials begin with Hello World


Create a file using vi

vi hello-world.go

Type this: (Make sure you press a or i first to toggle edit mode in vi)


package main

import "fmt"

func main() {
    fmt.Println("Hello World")

Save your work.(Make sure you press ESC first to toggle command mode in vi)

I have remaped ESC to jj