Tsallaka zuwa abun ciki
Justice Tech School

Go Get Started

Install Go from go.dev, then create a file called hello.go. Run it with go run hello.go, or build a binary with go build. A module is created with go mod init name.

Example
package main

import "fmt"

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

// Terminal:
//   go run hello.go
//   go build hello.go

Exercise

Run a Go file from the terminal.

go  hello.go

Quiz Test

Which command makes an executable?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.