Hello World in Go

Shiraz Khan's Avatar

Shiraz Khan

LinkedIn

Senior Software Engineer

19 January 2025 / 1 min read

This is how you write a simple Hello World app in Go:

package main

import fmt

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

Now you can run this code with go run or compile it with go build.