Why Go

I’ve been playing with Go recently. I like it. I’d read about Go and watched a few videos about it, but I’d never spent time writing Go in the editor. I use Hugo, a static site generator written in Go to make this site, so I thought it made sense to take the language for a spin. What I like about Go: It’s a small language, which makes it easier to learn....

May 29, 2022 · (updated June 15, 2022) · 1 min · Jackson Lucky

Testing in Go

Intro I’ve been learning the Go programming language in earnest this week. (See Why Go.) I believe that test-driven development (TDD) makes me write better code, so I wanted to start with tests. Testing and assertions I found an excellent paid resource, The Go Testing Bible video series. The author, Elliot Forbes, posts free videos on his TutorialEdge YouTube channel. Go has a robust testing package in its standard library. However, the testing syntax looked strange to me because it doesn’t use test assertions like I’m used to from languages like Node (JavaScript), Ruby, Python, and (my favorite) Elm....

May 29, 2022 · (updated June 15, 2022) · 2 min · Jackson Lucky

Go Date Formats

When formatting dates in Go, use January 2, 2006.

April 23, 2022 · 1 min · Jackson Lucky