0 votes
in GoLang by
How to create Your First Go program – Go Hello World!

1 Answer

0 votes
by

Create a folder called studyGo. In this Go language tutorial, we will create our go programs inside this folder. Go files are created with the extension .go. You can run Go programs using the syntax

go run <filename>

Create a file called first.go and add the below code into it and save

package main
import ("fmt")

func main() {
	fmt.Println("Hello World! This is my first Go program\n")
}
...