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

---
title: Best Go posts of 2024 | daily.dev
description: The most upvoted Go posts of 2024, curated by the daily.dev community.
canonical: https://daily.dev/sources/golang/best-of/2024
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/golang/best-of/2024
og:type: website
og:site_name: daily.dev
og:title: Best Go posts of 2024 | daily.dev
og:description: The most upvoted Go posts of 2024, 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 Go — 2024

1. 1  
[](/posts/building-llm-powered-applications-in-go-scx6l6brv "Building LLM-powered applications in Go")  
[![golang's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f416aeab0a1f4b9faa22d93768c97905)](/sources/[source]/best-of/[year])  
8m read time • Sep 12, 2024  
### Building LLM-powered applications in Go  
As Large Language Models (LLMs) and embedding models improve, more developers are integrating LLMs into their applications. Go excels in building LLM-powered applications due to its support for REST/RPC protocols, concurrency, and performance. This post demonstrates creating a Retrieval Augmented Generation (RAG) server in Go, which uses HTTP endpoints to add documents to a knowledge base and answer user questions. It explores implementing this with tools like Google Gemini API, Weaviate, LangChainGo, and Genkit for Go, highlighting Go's strengths in cloud-native application development.

+5  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/39b837b91d435ac673a1daa7b32a05fa?_a=AQAEuiZ)  
109  
1
2. 2  
[](/posts/go-protobuf-the-new-opaque-api-gxog3fpgh "Go Protobuf: The new Opaque API")  
[![golang's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f416aeab0a1f4b9faa22d93768c97905)](/sources/[source]/best-of/[year])  
13m read time • Dec 16, 2024  
### Go Protobuf: The new Opaque API  
Go Protobuf has introduced a new Opaque API to improve performance and memory efficiency by decoupling the generated code API from the in-memory representation. This change hides struct fields and replaces direct field access with getter and setter methods. The Opaque API supports lazy decoding and reduces pointer-related bugs. Migration to the Opaque API is recommended for new development, with a hybrid option available for existing codebases.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/39b837b91d435ac673a1daa7b32a05fa?_a=AQAEuj9)  
46
3. 3  
[](/posts/new-unique-package-peieo8ufy "New unique package")  
[![golang's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f416aeab0a1f4b9faa22d93768c97905)](/sources/[source]/best-of/[year])  
7m read time • Aug 27, 2024  
### New unique package  
Go 1.23 introduces the new unique package, designed for efficient deduplication of comparable values, a process known as interning. It allows for canonicalization across various types, which enhances memory efficiency and simplifies comparison. The package uses handles to track and manage canonical values, ensuring the garbage collector can clean up unused entries. This is particularly useful in scenarios involving repetitive data, such as IP addresses with zone details.

+1  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/39b837b91d435ac673a1daa7b32a05fa?_a=AQAEuiZ)  
31

[See all Go archives](/sources/golang/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/golang/best-of/2024#page","url":"https://daily.dev/sources/golang/best-of/2024","name":"Best Go Posts of 2024","description":"The most upvoted Go posts of 2024, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/golang/best-of/2024#items","numberOfItems":3,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/building-llm-powered-applications-in-go-scx6l6brv","name":"Building LLM-powered applications in Go"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/go-protobuf-the-new-opaque-api-gxog3fpgh","name":"Go Protobuf: The new Opaque API"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/new-unique-package-peieo8ufy","name":"New unique package"}]},{"@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":"Go","item":"https://daily.dev/sources/golang"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/golang/best-of"},{"@type":"ListItem","position":5,"name":"2024"}]}]}
```

