How do you test filepath.Abs in Go?
March 22, 2023
A small detour from the Go spec today…
I recently came upon this question on StackOverflow: How do you test filepath.Abs failure in your Go code?
I answered it, and also made a video diving into the question and three possible answers a bit more deeply. Have a watch.
What is the Best Book to Learn Go in 2023?
After reading every beginner's book I could find on Go, here is my recommended #1 book to help you learn the language.
Use error decorators to simplify your error handling code
Learn to use a custom error type as a decorator to simplify error handling.
Get daily content like this in your inbox!
Improve your knowledge of Go
Not sure? Browse the archive