01-setup

AdSense Placeholder (Header)
Go Tutorials Beginner

Getting Started with Go — Your First Steps

Let's install Go, set up your editor, and write your very first program. It's easier than you think.

Also available on YouTube • 4:34 watch time

Why Go?

Go — sometimes called Golang — was created by Google to make building fast, reliable software feel simple again. If you've ever felt overwhelmed by complicated setups or confusing syntax in other languages, Go is going to feel like a breath of fresh air. It compiles directly into a single binary, it's incredibly fast, and you can start writing real programs within minutes.

Installing Go on Your Machine

Head over to go.dev/dl and download the installer for your operating system. Whether you're on Windows, Mac, or Linux — the process is straightforward.

What you'll need:

  • • A computer running Windows, macOS, or Linux
  • • The Go installer from go.dev
  • • A code editor — VS Code works great with the Go extension

Once installed, open your terminal and type go version. If you see something like go1.22.3 printed back — you're all set.

Your First Go Program

Every Go program starts with a package declaration and a main function. Don't worry about what that means yet — just know that this is Go's way of knowing where your program begins.

package main

import "fmt"

func main() {
    fmt.Println("Hello from Bits Bytes!")
}

Save this as main.go, then run it with go run main.go in your terminal. You should see your message printed right there. That's it — you just wrote and ran a Go program.

Quick tip: The fmt package is Go's built-in tool for printing text. You'll use it constantly. Think of it as your program's voice.

Try It Yourself

Change the message to print your own name. Then try printing two lines instead of one. Getting comfortable with running code is the single most important step right now.

✅ Step 1 of 11 Completed
Phase 1: Go Foundations
🚀