#​477 — September 26, 2023

Unsub  |  Web Version

Together with  Ardan Labs

Go Weekly

Organizing a Go Module — It’s common for Go developers to think about how to organize the files and directories in projects (some of our most popular links have been on this topic). The Go project itself has tended to be quiet on the topic and has let the community figure out best practices, which has led to issues in the past, so it’s nice to see them publish something more official now.

The Go Team

Go! Experts at Your Service — Do you need help filling skill gaps, speeding up development & creating high performing software with Go, Docker, K8s, Terraform and Rust? We’ll help you maximize your architecture, structure, tech-debt and human capital.

Ardan Labs Consulting sponsor

Fixing for Loops in Go 1.22 — Go 1.21 includes a preview of a much-anticipated change to for-loop scoping that’s expected to ship fully in Go 1.22. This post shows off what will change and explains how such a significant change won’t affect Go’s backwards compatibility, by only being applied to code specifically declaring that it targets Go 1.22 or later.

David Chase and Russ Cox

QUICK BITS:

  • JetBrains has started the Early Access Program for GoLand 2023.3. As always, these builds of the popular Go IDE are free to try, and give a glimpse at what's coming up in the next major version.

  • Support for Passkeys is now generally available when using GitHub.

  • There's a proposal for adding runtime/trace 'flight recording' to Go's runtime a la the Java Flight Recorder. The idea is to maintain a circular buffer of trace data in a low-overhead way that can be interrogated as needed.

  • TinyGo 0.30 has been released which includes a switch to LLVM 16, support for Adafruit Gemma M0, and fixes for some bugs, just in time for GopherCon.

  • And yes, GopherCon 2023 is taking place right now in San Diego, CA. If you're there, we hope you're having a great time! 👋

Failsafe: Fault Tolerance and Resilience Patterns — A new Go library for building fault-tolerant apps where you can wrap code in various resilience policies such as Retry, CircuitBreaker, RateLimiter, Timeout, and Fallback. It supports async execution, cooperative cancellation, and event listeners.

Jonathan Halterman

GitHub Actions Could Be So Much BetterActions is a useful service, but the developer experience leaves much to be desired. If you’ve been frustrated when setting up and debugging workflows, you’ll find much to nod along with.

William Woodruff

How (Not) to Apply for a Software Job — Not Go specific, but one of our favorite Go bloggers.

Ben Hoyt

Temporal 101 & 102 Courses in Go — Learn Temporal's open source key concepts and best practices with our free self-paced training courses in Go.

Temporal Technologies sponsor

Top 10 Tips for Instrumenting Go Apps with New Relic — While this is part five of a series, it’s the one that summarizes all ten tips in one place.

Steve Ng (New Relic)

Replacing Python with Go and Reducing Our Docker Image Size by ~87%
Dragondrop

Implementing Enumerations in Go
William Kennedy

🛠 Code & Tools

Ebitengine v2.6.0: The 2D Game EngineEbitengine (formerly Ebiten) is the best known approach for building 2D games in Go that can run across numerous platforms (even including the Nintendo Switch). v2.6 improves Windows support, lets you control which monitor displays your game, provides a mouse cursor passthrough ability, and more.

Hajime Hoshi

Encore: Developer Productivity Platform for Go Development — Encore automates development tasks and infrastructure to shorten feedback loops, improve quality, and 2x productivity.

Encore sponsor

Sonnet: A High(er) Performance JSON Library“Fully compatible with the Go standard library, Both the encoder and the decoder passed all tests from it.” The author has benchmarks, but has also written an explanatory post on his approach.

Sugawara Yuuta

Afero 1.10: A Filesystem Abstraction System for Go — A single consistent API for accessing a variety of filesystems. Also lets you create mock and testing filesystems that don’t rely on disk at all.

Steve Francia

Flameshow: A Terminal Flamegraph Viewer — Before you whip out go install, bear in mind this tool is written in Python. Nonetheless, you get a capable terminal-based flamegraph renderer that, currently, only supports Go’s pprof data.

laixintao

automaxprocs: Automatically Set GOMAXPROCS to Match Linux Container CPU Quota

Uber Golang

📰 Classifieds

🎟️ CityJS Berlin: 1-3 November. 25 speakers including Tejas Kumar, Christian Heilmann, Rachel Nabors. Use COMMUNITY discount code to save 25% off.


💻 Find a job through Hired — Hired makes job hunting easy-instead of chasing recruiters, companies approach you with salary details up front. Create a free profile now.

🤔 PHP?

FrankenPHP 1.0 Beta: Another PHP App Server — Your eyes do not deceive you. This is still Go Weekly, but FrankenPHP is a new app server for PHP, written in Go and built on top of Caddy, that simplifies the deployment of PHP apps. If this idea sounds familiar, you may have encountered RoadRunner, another Go-powered PHP app server that takes a very different approach.

Kévin Dunglas