Golang Weekly - Fixing Go's for loops, for real

Plus we say hi to GopherCon 2023, GitHub's support for passkeys, and GoLand's latest EAP. |

#​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 include 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

n

Older messages

Explaining Go's WebAssembly System Interface support

Tuesday, September 19, 2023

Plus a simple Go static server, looking at JSON with 'fx', and gocron springs back into life. | #​476 — September 19, 2023 Unsub | Web Version Together with Fusion Auth Go Weekly fx 30: The Go-

Let's get optimizing

Tuesday, September 12, 2023

Plus some love for the Go gopher, and Go takes 8th place in IEEE's language roundup. | #​475 — September 12, 2023 Unsub | Web Version Together with Ardan Labs Go Weekly Profile-Guided Optimization

'Cgo performance is good actually'

Tuesday, September 5, 2023

Plus how Go 1.21 enables truly reproducible builds. | #​474 — September 5, 2023 Unsub | Web Version Together with Teleport logo Go Weekly Perfectly Reproducible, Verified Go Toolchains — Go 1.21

'There will not be a Go 2 that breaks Go 1 programs.'

Tuesday, August 29, 2023

Plus RIP to AWS Lambda's Go runtime, a big TinyGo update, and an official introduction to 1.21's structured logging. | #​473 — August 29, 2023 Unsub | Web Version 👋 We're back! Well, almost

Go 1.21 released

Tuesday, August 8, 2023

Plus cross-platform sound from Go, a new dependency security tool, and we're off for a few weeks. | #​472 — August 8, 2023 Unsub | Web Version ⛱ I'm taking two weeks off and will be back on

You Might Also Like

Software Testing Weekly - Issue 220

Saturday, May 18, 2024

Software Testing Conferences 📚 View on the Web Archives ISSUE 220 May 18th 2024 COMMENT Welcome to the 220th issue! Have you ever been to a testing conference? They're a great way to learn about

📶 Is a Cellular iPad Worth It? — How to Prevent YouTube From Taking Over Your Screensaver

Saturday, May 18, 2024

Also: This Robot Vacuum Can Clean Stairs, and More! How-To Geek Logo May 18, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to your inbox by

Weekend Reading — Objection-oriented programming

Saturday, May 18, 2024

This week we find a power-up box, replace GitHub Actions with Maven XMLs, avoid the worst website in the world, revisit RTO policies, “listen” to OpenAI employees, watch our Slack private messages, do

Daily Coding Problem: Problem #1445 [Easy]

Saturday, May 18, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Jane Street. The United States uses the imperial system of weights and measures, which

You don’t have to take our word for it…

Saturday, May 18, 2024

You can probably tell how excited we are to re-launch our Gigantic courses – which bring on-demand product management training for today's modern Product Managers and Product Leaders. In fact, we

🐍 New Python tutorials on Real Python

Saturday, May 18, 2024

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: What Is the __pycache__ Folder in Python? In

Visualized | Life Expectancy by Region (1950-2050F) 📊

Saturday, May 18, 2024

This map shows life expectancy at birth for key global regions, from 1950 to 2050F. View Online | Subscribe Presented by Voronoi: The App Where Data Tells the Story FEATURED STORY Life Expectancy by

New Wi-Fi Vulnerability Enables Network Eavesdropping via Downgrade Attacks

Saturday, May 18, 2024

THN Daily Updates Newsletter cover The DevSecOps Playbook: Deliver Continuous Security at Speed ($19.00 Value) FREE for a Limited Time A must-read guide to a new and rapidly growing field in

🐍 New Python tutorials on Real Python

Saturday, May 18, 2024

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: What Is the __pycache__ Folder in Python? In

Toward 'local' AI w/ Apple's new chip

Saturday, May 18, 2024

faster than the cloud ☁️ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌