<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/planetgolang/best-of/2025" -->

---
title: Best Planet Golang posts of 2025 | daily.dev
description: The most upvoted Planet Golang posts of 2025, curated by the daily.dev community.
canonical: https://daily.dev/sources/planetgolang/best-of/2025
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/planetgolang/best-of/2025
og:type: website
og:site_name: daily.dev
og:title: Best Planet Golang posts of 2025 | daily.dev
og:description: The most upvoted Planet Golang posts of 2025, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of Planet Golang — 2025

1. 1  
[](/posts/test-state-not-interactions-dfi4stotc "Test state, not interactions")  
[![planetgolang's profile](https://media.daily.dev/image/upload/s--nkaYE8PY--/f_auto/v1721572510/logos/planetgolang)](/sources/[source]/best-of/[year])  
9m read time • Sep 14, 2025  
### Test state, not interactions  
State-based testing validates system behavior by checking outcomes rather than implementation details. Mock-based interaction testing creates brittle tests that break on harmless refactors while missing real bugs. Handwritten fakes that implement domain rules provide better test maintainability and reliability than generated mocks. LLMs often produce poor interaction-checking tests that add maintenance overhead without meaningful validation.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/1bf57bf7583aa48d5065a630275da60e?_a=AQAEulh)  
34
2. 2  
[](/posts/reading-list-ldr797kzl "Reading List")  
[![planetgolang's profile](https://media.daily.dev/image/upload/s--nkaYE8PY--/f_auto/v1721572510/logos/planetgolang)](/sources/[source]/best-of/[year])  
2m read time • Jul 10, 2025  
### Reading List  
An automated reading list that aggregates the latest articles from curated technical blogs using GitHub Actions. The list includes recent posts covering Go programming, protobuf tips, database debugging, open source coordination, and various software engineering topics from respected authors in the developer community.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/fc2c4bafac65012b454a272d3bd87ac2?_a=AQAEulh)  
22
3. 3  
[](/posts/go-1-24-s-tool-directive-ve0g4tork "Go 1.24's "tool" directive")  
[![planetgolang's profile](https://media.daily.dev/image/upload/s--nkaYE8PY--/f_auto/v1721572510/logos/planetgolang)](/sources/[source]/best-of/[year])  
4m read time • Apr 22, 2025  
### Go 1.24's "tool" directive  
Go 1.24 introduces a 'tool' directive that helps developers manage project-specific tools more effectively. This new feature addresses issues with global installations and version mismatches of tools. The 'tool' directive allows you to include tool dependencies in your go.mod file, keeping them separate from regular module dependencies. However, this approach still mixes application and dev dependencies in the main go.mod file. The directive currently works only with Go-native tools.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/1bf57bf7583aa48d5065a630275da60e?_a=AQAEuj9)  
19  
1
4. 4  
[](/posts/announcing-goreleaser-v2-11-idir89jnm "Announcing GoReleaser v2.11")  
[![planetgolang's profile](https://media.daily.dev/image/upload/s--nkaYE8PY--/f_auto/v1721572510/logos/planetgolang)](/sources/[source]/best-of/[year])  
1m read time • Jul 10, 2025  
### Announcing GoReleaser v2.11  
GoReleaser v2.11 introduces several improvements including enhanced Homebrew Cask functionality, output options for publishers in the Pro version, support for nightly releases without repository tags, git commit signing capabilities, and better UI help display. The tool now has 14.8k stars and 435 contributors.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/a3e300d8046d5164f05781a4f9b2c8b7?_a=AQAEulh)  
17  
2
5. 5  
[](/posts/preventing-accidental-struct-copies-in-go-uhdwkitjh "Preventing accidental struct copies in Go")  
[![planetgolang's profile](https://media.daily.dev/image/upload/s--nkaYE8PY--/f_auto/v1721572510/logos/planetgolang)](/sources/[source]/best-of/[year])  
4m read time • Apr 22, 2025  
### Preventing accidental struct copies in Go  
In Go, passing values by reference can prevent unintended struct copies, especially with synchronization primitives like sync.WaitGroup. Accidental copies can cause subtle bugs in concurrent code. Tools like go vet help catch these issues by flagging the use of sync.noCopy in the struct definitions.

+1  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/1bf57bf7583aa48d5065a630275da60e?_a=AQAEuj9)  
16
6. 6  
[](/posts/go-1-24-s-omitzero-is-another-one-of-the-best-additions-to-the-ecosystem-in-years-jamie-tanna-bg5flzayy "Go 1.24's `omitzero` is another one of the best additions to the ecosystem in years · Jamie Tanna")  
[![planetgolang's profile](https://media.daily.dev/image/upload/s--nkaYE8PY--/f_auto/v1721572510/logos/planetgolang)](/sources/[source]/best-of/[year])  
4m read time • Feb 13, 2025  
### Go 1.24's \`omitzero\` is another one of the best additions to the ecosystem in years · Jamie Tanna  
Go 1.24 introduces the \`omitzero\` JSON struct tag, which allows developers to omit zero-value fields without using pointers. This new feature simplifies the handling of optional fields in JSON by eliminating the need for pointer types, making the code cleaner and more straightforward. \`omitzero\` provides clearer semantics and improves the experience of working with JSON marshalling in Go.

+1  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/b2a297b1f70f10fdb4f8d86998b26d1e?_a=AQAEuj9)  
13
7. 7  
[](/posts/generating-go-code-from-json-schema-documents-jamie-tanna-2qvvcvihy "Generating Go code from JSON Schema documents · Jamie Tanna")  
[![planetgolang's profile](https://media.daily.dev/image/upload/s--nkaYE8PY--/f_auto/v1721572510/logos/planetgolang)](/sources/[source]/best-of/[year])  
26m read time • Jun 06, 2025  
### Generating Go code from JSON Schema documents · Jamie Tanna  
Compares two popular Go libraries for generating struct types from JSON Schema documents: github.com/atombender/go-jsonschema (supports draft-07) and git.sr.ht/\~emersion/go-jsonschema (supports 2020-12). The first generates individual named types with enum constants and comprehensive struct tags, while the second creates a single struct with anonymous nested types. Both tools can be integrated using go:generate directives, with tips provided for using $refs to create named types instead of anonymous ones.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/b2a297b1f70f10fdb4f8d86998b26d1e?_a=AQAEulh)  
11

[See all Planet Golang archives](/sources/planetgolang/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/planetgolang/best-of/2025#page","url":"https://daily.dev/sources/planetgolang/best-of/2025","name":"Best Planet Golang Posts of 2025","description":"The most upvoted Planet Golang posts of 2025, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/planetgolang/best-of/2025#items","numberOfItems":7,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/test-state-not-interactions-dfi4stotc","name":"Test state, not interactions"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/reading-list-ldr797kzl","name":"Reading List"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/go-1-24-s-tool-directive-ve0g4tork","name":"Go 1.24's \"tool\" directive"},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/announcing-goreleaser-v2-11-idir89jnm","name":"Announcing GoReleaser v2.11"},{"@type":"ListItem","position":5,"url":"https://daily.dev/posts/preventing-accidental-struct-copies-in-go-uhdwkitjh","name":"Preventing accidental struct copies in Go"},{"@type":"ListItem","position":6,"url":"https://daily.dev/posts/go-1-24-s-omitzero-is-another-one-of-the-best-additions-to-the-ecosystem-in-years-jamie-tanna-bg5flzayy","name":"Go 1.24's `omitzero` is another one of the best additions to the ecosystem in years · Jamie Tanna"},{"@type":"ListItem","position":7,"url":"https://daily.dev/posts/generating-go-code-from-json-schema-documents-jamie-tanna-2qvvcvihy","name":"Generating Go code from JSON Schema documents · Jamie Tanna"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"Planet Golang","item":"https://daily.dev/sources/planetgolang"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/planetgolang/best-of"},{"@type":"ListItem","position":5,"name":"2025"}]}]}
```

