Site icon NgDeveloper

Hello World Go Programming Language

Step 1: Download the go programming language from the below link,

http://code.google.com/p/go/downloads/list

and Install it.

Step 2: Create a file named hello.go and paste the below code,

package main

import "fmt"

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

 Step 3: Save the hello.go in bin folder as like in java.

Step 4: Compile and run the program as like below,

 

 

Thanks for reading this post……..!!!

 

Exit mobile version