Learn how to say hello in Go

September 28, 2020


First blog post, just saying hi to the world ;)

How to say it?

Write the following code into a file appropriately named: helloworld.go:

package main

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

Then open a terminal in the directory where the above file is located and run the following command: go run helloworld.go

If the output you see on the screen is “Hello, World!”, then

What have we learned?

  1. We have Go installed correctly on our computer
  2. We just wrote our first program in Go
  3. We now khow how to introduce ourselves to the world in the Go programming language

Where to go from here?

Learn more Go by following the official Go Tour

Happy coding!