Hello, World

Get familiar with the basics of Go with some practical examples.

Hello, World!

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

Press + to interact
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}

If we run the code above, we should see the Hello, World! string in the output section.

In a nutshell

Now, let’s walk through the creation process for this application.

Coding

We need to create an empty folder that contains our project. Inside it, we add a main.go that will be the entry point for our application. This file is part of ...