The Best of the Go Newsletter in 2022
This is the final issue of the year (we're back on January 6, 2023) so we're revisiting the most popular links (and releases) from this year. There'll be a few useful resources that escaped your attention or that you've since forgotten about so enjoy! 😁
Have a fantastic holiday season. ____ Peter Cooper, your editor
|
1: Effective Error Handling in Go — The most popular item of the year came in the very first issue of 2022 and presaged what would be a common concern this year: error handling. Brandon covered the basics, as well as some simple strategies you can follow to ensure your programs are more robust and easier to debug.
Brandon Schurman
|
Check Out GoLand 2022.3! — This version brings performance improvements and new features for generics and Go workspaces. The new Code Vision feature displays the usages next to functions and types. We’ve integrated Go Playground and added support for improvements to Go docs.
JetBrains sponsor
|
|
3: A Proposal: A try Statement for Error Handling — Inspired by the results of this year's Go community survey, a self-proclaimed 'if err != nil expert' put forward a proposal for adding some syntactic sugar to error handling – it appears to have fizzled out for now.
Greg Weber
|
5: Getting Familiar with Workspaces — Go 1.18’s other big feature, workspaces, also had its day in the sun (well, on the official Go blog anyway). “Workspaces in Go 1.18 let you work on multiple modules simultaneously without having to edit go.mod files for each module.” Beth explains how to get started.
Beth Brown (Go Team)
|
7: Google's Internal Go Style Guide — What goes for Google doesn’t necessarily go for everyone else, but it was interesting to see their stance on writing idiomatic Go. The actual style guide is here and is pretty short and sweet, focusing on clarity, simplicity and consistency as core tenets.
Google
|
8: 'Crimes' with Go Generics — Many Go developers warned of a likely period of churn and trial and error as everyone began to learn when and when not to use generics. This post focused on the latter and on 'bad ideas' which, perhaps, could help you refine your own attitudes to using generics.
Xe Iaso
|
1: Wails v2: Build Cross-Platform Desktop Apps with Go — Wails is an Electron-a-like for Go for building cross-platform desktop apps using Go as the base language and JavaScript on the front (and, yes, JS can call your Go functions). This was by far the most popular code and tool related link of the year.
Lea Anthony
|
3: GoPlay: A Better Go Playground? — Powered by React, the “better” here includes a dark theme, autocompletion, a ton of loadable snippets, file loading/saving, and WASM support. There’s also a Docker image so you can have a private playground of your own.
Denis Sedchenko
|
|