August 13th, 2024 08:09 UTC · 3 months ago

Golang

Relearning Go: Day 1

Hello World

I install Go. I don’t want to relearn from “Hello, World!” onwards. That’s too far back – I’ll only become impatient. Instead, from Go’s /learn/ page, I choose Go by Example.

Hello World

Ah, okay, it starts with “Hello World”.

package main

import "fmt"

func main() {
    fmt.Println("hello world")
}

(Mildly triggered by that all lowercase sentence. I have this weird sense that Go people love this kind of thing. No! English sentences start with a capital letter and end with punctuation. I’m sweating.)


Short day; I wrote the introduction today but split that out into a separate post.