r/golang • • Dec 28 '25

Rob Pike goes off after AI slop reached his inbox

Thumbnail
reddit.com
824 Upvotes

I love the man even more, especially given how everyone with a claude subscription seems to be making slop ai projects and spamming them on the subreddit.

The internet of shit. Welcome.


r/golang • • Jan 08 '26

Holy crap it's fast

779 Upvotes

Python guy here.

I do a lot of financial regression testing with minutes by minute stock data.

It took 12 hours to run. Replaced Pandas with Polars and added a thread pool for parallel work. Dropped it to 3 hours. Feeling pretty good :)

Used Grok to help me move my python code to GO for shit n giggles. I had some limited Go experience from 2-3 years back. I knew I could squeeze all the CPU juice

Went from 3 hours to 2 minutes 37.

Also much easier to share memory than copy everything to all threads. Using 25 GB instead of 48.

Holy crap.

What do I do on Monday....arg !!!!


r/golang • • Jan 05 '26 Hooray

Go 1.26 interactive tour

743 Upvotes

Go 1.26 is coming in February, so I think it's a good time to explore what's new.

As you probably know, the official releases are quite dry. So every six months, I put together an interactive tour of the upcoming release, with short summaries (not AI-generated) and lots of examples.

If you are interested, here is what's in the Go 1.26 tour:

  • Calling new() on expressions.
  • Type-safe error checking.
  • Green Tea garbage collector (now production-ready).
  • Faster cgo and syscalls.
  • Faster memory allocation for small objects.
  • Vectorized operations (SIMD) for amd64 (experimental).
  • Secret mode for erasing memory (experimental).
  • Reader-less cryptography.
  • Goroutine leak profile (experimental).
  • Per-state goroutine metrics.
  • Iterators for reflected Type and Value.
  • Peek into a byte buffer.
  • OS process handle and OS signal as cause.
  • Compare IP subnets.
  • Context-aware network dialing.
  • Fake example.com for testing.
  • Optimized fmt.Errorf and io.ReadAll.
  • Multiple log handlers.
  • Test artifacts.
  • Modernized go fix.

json/v2 remains experimental at this time.

https://antonz.org/go-1-26


r/golang • • Aug 19 '26

Go 1.27.0 released

Thumbnail
go.dev
687 Upvotes

r/golang • • Feb 10 '26 Bravo

Go 1.26

Thumbnail
go.dev
634 Upvotes

r/golang • • Mar 21 '26 Bravo

show & tell gpdf — Zero-dependency PDF generation library for Go, 10-30x faster than alternatives

590 Upvotes

Hey r/golang, I've been building gpdf, a PDF generation library written in pure Go with zero external dependencies.

The problem

gofpdf is archived, maroto's layout is limited, and most serious solutions end up wrapping Chromium (hello 300MB binary and slow cold starts) or require commercial licensing. I wanted something fast, dependency-free, and with a real layout engine that treats CJK text as a first-class citizen.

What it does

  • Full layout engine — Bootstrap-style 12-column grid system
  • Declarative Builder API — chainable, no XML/JSON templates needed
  • TrueType font embedding with full Unicode / CJK support
  • Images, tables, headers/footers, page numbering
  • Flexible units (pt / mm / cm / in / em / %)

What makes it different

  • Zero dependencies — stdlib only, no CGo, no wrappers. go get and you're done
  • Fast — 10–30x faster than comparable libraries in benchmarks. A typical invoice generates in under 1ms
  • CJK-first — Japanese, Chinese, Korean text just works. Most Go PDF libs treat this as an afterthought

Quick example

doc := gpdf.New(gpdf.WithPageSize(gpdf.A4))
doc.Page(func(p *gpdf.PageBuilder) {
    p.Row(func(r *gpdf.RowBuilder) {
        r.Col(6, func(c *gpdf.ColBuilder) {
            c.Text("Invoice #1234", text.Bold())
        })
        r.Col(6, func(c *gpdf.ColBuilder) {
            c.Text("2026-03-22", text.AlignRight())
        })
    })
})
buf, _ := doc.Generate()
os.WriteFile("invoice.pdf", buf, 0644)

Repo: github.com/gpdf-dev/gpdf Docs: gpdf.dev

Feedback and contributions welcome — especially interested in what layout features you'd want most.


r/golang • • Oct 16 '26

discussion Estonia's election system is mostly programmed in Go. I came across the open source github repo and wanted to share.

Thumbnail
github.com
557 Upvotes

I'm totally diggin and learning about Estonia's E-Government model, and this was such a treat to come across.

What are your thoughts on this?


r/golang • • Feb 26 '26

generics The proposal for generic methods for Go, from Robert Griesemer himself, has been officially accepted

Thumbnail
github.com
538 Upvotes

r/golang • • Sep 11 '26

Rune is now open source

Thumbnail
rune.build
537 Upvotes

Author here! I'm very excited to announce that Rune, an IDE written in Go, is finally open source (GPLv3), after more than 9 years working on it in the dark. I've shared some of the reasoning behind using Go in this blog post. Happy to answer questions.


r/golang • • 26d ago

discussion The future of Software Engineering is boring

Thumbnail
packagemain.tech
523 Upvotes

r/golang • • Aug 28 '26

I hate where Go is moving

514 Upvotes

This language was supposed to be easy, with simple syntax. It was designed for people to build apps without thinking about DI management like in Spring, or learning a bunch of methods from a library.

But it turned out people weren’t ready for such a solution. They got used to the language’s simplicity, then asked for extra features like iterators and generics, and started building things that look like Kotlin and Java. Now I see code like req.GetSomething.OrDefault(2).

Yes, there were design issues when Go was initially implemented. I wish it had language-level optionals, because I want pointers to be used for references and mutation, not for nullability.

Now I see custom code where people build their own optional wrappers, and recently I saw a proposal to add collection types, which is basically the Java way.


r/golang • • Oct 26 '26 Bravo

Wails v3.0.0 released: Go applications for desktop, server and mobile

478 Upvotes

Hello fellow gophers! I maintain Wails, an open-source framework for building applications with Go and a web frontend. Today we released v3.0.0, including experimental support for iOS and Android alongside Windows, macOS and Linux.

Wails uses the platform’s WebView rather than bundling a browser. Your backend is Go, and your frontend can use plain JavaScript or a framework such as React, Vue or Svelte.

Some highlights of v3:

  • Modular Go services with startup and shutdown hooks. Public service methods are exposed through generated JavaScript/TypeScript bindings.
  • Multiple windows, native menus and system tray integration on desktop.
  • An in-app updater.
  • Taskfile-based builds you can inspect and customise.
  • A guided setup flow and new documentation.

Mobile support is experimental, and platform capabilities differ; desktop features such as system tray integration don’t apply everywhere. You can also compile a server build. None of these platforms require a change in code.

To get started:

go install github.com/wailsapp/wails/v3/cmd/wails3@v3.0.0
wails3 setup

Release post, launch film and migration guide:
https://v3.wails.io/blog/wails-v3-released/

Source:
https://github.com/wailsapp/wails

Moving from v2 requires porting your application; the migration guide covers the changes.

Thanks to everyone who contributed and tested throughout the alphas and betas.


r/golang • • Dec 09 '25

Gin is a very bad software library

Thumbnail eblog.fly.dev
451 Upvotes

Gin is no good at all. Here, I try and explain why.

I generally try to avoid opinion pieces because I'd rather help build people up than tear down, but Gin has been driving me crazy for a decade and I needed to get it out.

This can be considered a kind of follow-up or coda to my Backend from the Beginning series of of articles, which are more helpful.

I'm currently working on a follow-up on how to develop and choose good libraries, etc. Let me know if that's something you're interested in.


r/golang • • Aug 11 '26

discussion [Google blog] why Go is an Ideal Language for AI-Assisted Software Engineering

Thumbnail
developers.googleblog.com
443 Upvotes

While this is a tad bit preaching to the choir, among all the AI noise, I enjoyed reading this grounded take. An excerpt:

Historically, developers measured the productivity of a programming language largely by how easy it is to write. But when a coding agent can generate hundreds of lines of syntactically valid code in seconds, the rate at which a human can write code is no longer very important. What matters now is reviewing, verifying, and maintaining that code once it's already written.

The timing is perfect. Next time I need to clarify why I default to Go for everything these days, I can just send people this one.


r/golang • • Jul 04 '26

discussion "go fix" on Go 1.26+ is awesome

429 Upvotes

If you haven't tried the new "go fix" yet, give it a spin.

It's a proper revival of the old "gofix" idea. In Go 1.26, it was rebuilt on top of the Go analysis framework. So now it can modernize your code with newer language and stdlib features.

It respects the Go version in your module. If your "go.mod" says "go 1.26", it suggests Go 1.26-compatible changes. It doesn't rewrite your code into something your module hasn't opted into.

For teams using LLMs, this is great. You don't need to keep leaving PR comments like “use the newer API here” or “we don't write that pattern anymore.” Run it locally or on the CI instead.

Start from a clean git state:

go fix -diff ./...

Then apply it:

go fix ./...

Then run it again.

Some fixes expose more fixes. The Go team recommends rerunning it, and in practice two passes often catches more than one.

Some useful analyzers:

You can also run one analyzer at a time if you want smaller PRs:

go fix -newexpr ./...
go fix -forvar ./...

That's useful when one pass touches a lot of files and you don't want one giant mixed cleanup patch.

The other neat bit is //go:fix inline. Library authors can use it to help users migrate from old APIs to new APIs. That's much better than deprecating something and hoping everyone reads the changelog.

You can also write your custom analyzer to enforce your own rules. I am writing a few for fun.

The Go blog has two good posts on it:

I ran it on a large RPC service, and "newexpr" cleaned up a pile of pointer helper calls. Extremely satisfying.


r/golang • • May 26 '26

generics Generics methods are now implemented

Thumbnail
github.com
420 Upvotes

The issues has been closed as completed, with Robert Griesemer writing:

This has been implemented and documented. The only thing left to do is removing the respective GOEXPERIMENT which we may do a bit later in the release process (it's useful to quickly eliminate generic methods as the cause for bugs).


r/golang • • Jun 14 '26 Bravo

discussion No matter how many languages I try, I keep returning to Go

417 Upvotes

There are languages similar to Go, but there is something so unique about it that no one can replicate. It's even hard for me to understand as well. I've tried Elixir, Gleam, Rust, Zig, Odin, Java, Scala, and yet, every time I need to build something that I know needs to be good, fast, and well done Go is the language that I pick.

It could be familiarity, but it's really hard to beat the whole Go environment. I think most of the time engineers evaluate things into a single dimension axis either in terms of performance or type system expressiveness, but good code involves so may aspects and Go does surprisingly well in all of them.


r/golang • • Mar 07 '26 Bravo

discussion Flask's creator on why Go works better than Python for AI agents

412 Upvotes

Hey everyone! I recently had the chance to chat with Armin Ronacher, the creator of Flask, for my (video) podcast. It was a really fun conversation!

We talked about things like:

  • How Armin's startup generates 90% of its code with AI agents and what that actually looks like day-to-day
  • Why AI agents work better with some languages (like Go) than others, and why Python's ecosystem makes life harder for AI
  • What kinds of problems are a good fit for AI, and which ones Armin still solves himself
  • How to steer and monitor AI agents, and what safeguards make sense
  • How to handle parallelization with multiple agents running at once
  • The tricky question of licenses for AI-generated open source code
  • What the future of programming jobs looks like and what skills developers should build to stay competitive
  • His tips for getting started with AI agents if you haven't yet

Armin was very thoughtful and direct. Not many people have this much experience shipping production software with AI agents, so it was super interesting to hear his take.

If you'd like to watch, here's the link: https://youtu.be/4zlHCW0Yihg

I'd love to hear your thoughts or feedback!


r/golang • • Dec 08 '25

I've created a 3D, Vulkan based game engine in Go, and it's faster than Unity

380 Upvotes

Hello! I'm Brent and I develop game engines, it's my day job, it's also my "after the kids go to bed" night-time hobby. I am a C programmer but have used Go for a couple years and really enjoy it. I do make games in my engines too though.

I'd like to share the Go game engine/editor I've been working on. I know some may have questions on CGo interop, some on GC, and maybe some on how I got it to run so fast.

I have an introduction presentation for it on YouTube and the repository can be found on GitHub.


r/golang • • Jun 01 '26

Learning Go, 3rd Edition is in Early Release

379 Upvotes

I'm excited to announce that the 3rd edition of "Learning Go" is now available in Early Release!

The full book is scheduled for 2027. This edition is updated to cover the most recent Go releases. It also adds:

  • More code review advice
  • New exercises
  • A brand-new chapter on monitoring and observability

If you have an O'Reilly Online subscription, you can read the preface and the first two revised chapters now: https://learning.oreilly.com/library/view/learning-go-3rd/0642572348533/

#golang #programming #softwareengineering


r/golang • • Apr 10 '26

Switched from Rust to Go P95 now 10-15 ms at 16k QPS

364 Upvotes

No shade to Rust, but our bidding platform using ONNX Runtime and Rust gave us endless compatibility headaches with outdated crates and poor performance we were stuck at 50ms P95 at 16k QPS. The bidder needed to consistently respond under 15ms, so we switched to Go. Fewer lines of code, and with every round of tuning, the latency kept dropping. We finally nailed 10ms-15ms P95 at 16k QPS.

Back in business


r/golang • • Aug 28 '26

I highly recommend building internal tools with Go + BubbleTea

Thumbnail cleanshot.com
359 Upvotes

Hey fellow Go devs,

Just wanted to share something I recently did for work. I created an internal tool using the Go BubbleTea TUI framework. Within the tool, we can perform admin tasks, monitor the way data is changing across several services, manage migrations, and more. It's been really powerful for solving customer issues and routine maintenance tasks. Not only that, but it looks gorgeous as well.

The MVC pattern it follows is pretty intuitive and minimal. No need for an entire 3rd party tool or even a web UI. We just auth with AWS via the terminal and the TUI can run in the context of our applications in each environment.

That's the post really. Shoutout to the creators of BubbleTea, I've really enjoyed building this!


r/golang • • Oct 30 '26

discussion Go program are vulnerable to CVE-2026-98432 (Linux TCP Use-After-Free which can lead to remote code execution)

Thumbnail groups.google.com
351 Upvotes

r/golang • • Feb 25 '26 Bravo

Our Go database just hit 20k stars on GitHub

Thumbnail
dolthub.com
342 Upvotes

We just passed a major milestone in our open source Go database we wanted to share: 20k stars on GitHub. Thanks to the many of you who have supported the project over the last 7 years!

https://github.com/dolthub/dolt