Cannot import main: a Go Module gotcha
Two questions for you: Do you name an app module simply “main”? And do you happen to write tests for a main package? If so, you are in big trouble! (Ok, that was a bit clickbait-ey…) Well, the world is not exactly going to end; however, you might encounter an unexpected error that is hard to track down.
Futures in Go, no package required
Futures are mechanisms for decoupling a value from how it was computed. Goroutines and channels allow implementing futures trivially. Does this approach cover all aspects of a future?
what.Happens - a debug logging package for developers only
Package what provides some handy debug-logging functions that can be enabled and disabled via build flags. No more information leaks in your production code!
Slow down your code with goroutines
In the news: Go on AWS Lambda
Just recently, Amazon announced support for Go on AWS Lambda. Here is a summary of last week’s news around this topic.
How to Create PDF Documents
Pure data is for computers and nerds like you and me. Anyone else likes nicely formatted reports. Go and a good PDF package can help.
Processing spreadsheet data in Go
Your managers, all through the hierarchy, love circulating spreadsheets via email. (They simply don’t know better.) How to extract and analyze the relevant data from the daily mess? Go can help.
A DIY Dashboard with Grafana
If your code creates some stats to monitor, Grafana and the Grada package may come in handy.
Go slices are not dynamic arrays
Go’s slices are cleverly designed. They provide the look-and-feel of truly dynamic arrays while being optimized for performance. However, not being aware of the slice mechanisms can bring you into trouble.
goman - the missing man pages for Go binaries
Most Go binaries come without any man page. The tool goman
fills this gap. If the corresponding project includes a decent README file (and most projects do), goman
find this README file and displays it on the terminal.