Search⌘ K
AI Features

Hello, World

Explore the basics of Go programming by creating a Hello World application. Understand the use of packages, module initialization with go mod init, and running your program using the go run command. This lesson helps you set up your first Go project and see immediate output to the console.

Hello, World!

As a warmup, let’s start with a basic application: “Hello, World!” The code sample for this ...

Go (1.18.2)
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}

If we run the code above, we should see the ...