Discover pprof's capabilities in tackling bugs and memory leaks, with a real-life case study examining its impact on performance.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
Getting a pointer to a constant in Go 👾
In Go, sometimes you need to get a pointer to a constant value. The topic is simple, but the author explains all the approaches well, and for dessert he shows an interesting life hack that is used in the Kubernetes source code.
Link to the article
#go #go@digest_golang #article #article@digest_golang
In Go, sometimes you need to get a pointer to a constant value. The topic is simple, but the author explains all the approaches well, and for dessert he shows an interesting life hack that is used in the Kubernetes source code.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
Weak Pointers in Go: Why They Matter Now 💪
Weak pointers are pointers that do not block the garbage collector and allow it to free the memory that such a pointer points to.
This is an interesting and useful concept that, if used correctly, allows you to optimize the operation of a program.
Smart pointers are expected in Go in version 1.24, but we can already see how they work.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Weak pointers are pointers that do not block the garbage collector and allow it to free the memory that such a pointer points to.
This is an interesting and useful concept that, if used correctly, allows you to optimize the operation of a program.
Smart pointers are expected in Go in version 1.24, but we can already see how they work.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
Why Golang slices still surprise me 🤓
A slice is a basic concept of the Go language that can be represented in two ways: either as a dynamic array or as a fat pointer. The author explains what problems this entails and how to solve them.
Link to the article
#go #go@digest_golang #article #article@digest_golang
A slice is a basic concept of the Go language that can be represented in two ways: either as a dynamic array or as a fat pointer. The author explains what problems this entails and how to solve them.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
Suite smells: undertesting and overtesting🤡
This is the second in a three-part series of excerpts from the book, focusing on test suites in Go, what kind of problems you might find with them, and some tips on how to fix them.
Link to the article
#go #go@digest_golang #article #article@digest_golang
This is the second in a three-part series of excerpts from the book, focusing on test suites in Go, what kind of problems you might find with them, and some tips on how to fix them.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
Run a Simple Go Web Service on NixOS ❤️
NixOS is a Linux distribution created for various devops tasks. The author explains why he chose this system to deploy his applications and why he refused to use Ansible and Docker. Finally, the author shows how to run a simple Go application on NixOS.
Link to the article
#go #go@digest_golang #article #article@digest_golang
NixOS is a Linux distribution created for various devops tasks. The author explains why he chose this system to deploy his applications and why he refused to use Ansible and Docker. Finally, the author shows how to run a simple Go application on NixOS.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
Disable Slog Messages in Go Tests 🤓
slog package was added to Go 1.23, which improves logging capabilities and allows you to abandon many third-party solutions.
In this short note, the author provides code that makes a mock logger for tests. Bookmark it!
Link to the note
#go #go@digest_golang #note #note@digest_golang
slog package was added to Go 1.23, which improves logging capabilities and allows you to abandon many third-party solutions.
In this short note, the author provides code that makes a mock logger for tests. Bookmark it!
Link to the note
#go #go@digest_golang #note #note@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
Go Protobuf: The new Opaque API 🤓
A new article in the official go blog talks about a new way to generate .pb.go files when working with grpc - Opaque API. The new API allows you to use less memory and use it more efficiently, adds laze decoding optimizations, optimizes work with pointers, and adds many other useful changes.
A must read if you use grpc in your projects!
Link to the article
#go #go@digest_golang #note #note@digest_golang
A new article in the official go blog talks about a new way to generate .pb.go files when working with grpc - Opaque API. The new API allows you to use less memory and use it more efficiently, adds laze decoding optimizations, optimizes work with pointers, and adds many other useful changes.
A must read if you use grpc in your projects!
Link to the article
#go #go@digest_golang #note #note@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
Coming in Go 1.24: testing/synctest experiment for time and concurrency testing ❤️
Go 1.24, which will be released in February, will include the testing/synctest package, which greatly improves timing testing. The package contains a Run function that allows testing code in a "bubble". The time inside the "bubble" is controlled by the Go runtime.
In this article, the author shows what problems this package will fix and how it will help with testing parallel code.
Link to the article
#go #go@digest_golang #note #note@digest_golang
Go 1.24, which will be released in February, will include the testing/synctest package, which greatly improves timing testing. The package contains a Run function that allows testing code in a "bubble". The time inside the "bubble" is controlled by the Go runtime.
In this article, the author shows what problems this package will fix and how it will help with testing parallel code.
Link to the article
#go #go@digest_golang #note #note@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
Golang 1.24 is looking seriously awesome 🤡
This article provides a brief overview of the main new features that will be added in the new Go 1.24 version.
Link to the article
#go #go@digest_golang #article #article@digest_golang
This article provides a brief overview of the main new features that will be added in the new Go 1.24 version.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
Go's Weird Little Iterators 🤓
In this article, a former Google developer discusses the iterator implementation in Go 1.23 and compares it to iterator implementations in languages such as C++, Java, and Rust. The article provides detailed examples and analysis of Go's iteration mechanisms and their implications for developers.
Link to the article
#go #go@digest_golang #article #article@digest_golang
In this article, a former Google developer discusses the iterator implementation in Go 1.23 and compares it to iterator implementations in languages such as C++, Java, and Rust. The article provides detailed examples and analysis of Go's iteration mechanisms and their implications for developers.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
One of the most popular libraries that simplifies the release process for Go has been updated - GoReleaser! The new version reaches a new level: the author added support for two increasingly popular languages: Rust and Zig!
List of all changes
#go #go@digest_golang #tool #tool@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
Golang Error Handling — Improvised (Must Pattern) 🚀🚀
Error handling is a core part of any programming language. However, Go’s approach to error handling often leads developers to write verbose, repetitive code — a sentiment shared by many in the Go community. Let’s explore why this redundancy happens, the limitations it brings, and what potential solutions could look like.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Error handling is a core part of any programming language. However, Go’s approach to error handling often leads developers to write verbose, repetitive code — a sentiment shared by many in the Go community. Let’s explore why this redundancy happens, the limitations it brings, and what potential solutions could look like.
Link to the article
#go #go@digest_golang #article #article@digest_golang
What are the best Go books in 2025? ❤️
The author has reviewed some new and already classic books about the Go language that he thinks are worth reading.
Let's start the year by reading great literature about our favorite language!
Link to the list
#go #go@digest_golang #article #article@digest_golang
The author has reviewed some new and already classic books about the Go language that he thinks are worth reading.
Let's start the year by reading great literature about our favorite language!
Link to the list
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
Go Developer Survey 2024 H2 Results ❤️
The newest survey results from the Go community have been published. Linux and macOS are the most popular operating systems, VS Code and GoLand top the list for IDEs, and AWS stands out among cloud services.
Full statistics
#go #survey #goblog #go@digest_golang #survey@digest_golang #goblog@digest_golang
The newest survey results from the Go community have been published. Linux and macOS are the most popular operating systems, VS Code and GoLand top the list for IDEs, and AWS stands out among cloud services.
Full statistics
#go #survey #goblog #go@digest_golang #survey@digest_golang #goblog@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
Rust vs Go in 2025 🤜
Interesting thoughts on which language is better from John Arundel - a developer with 40 years of experience and the author of many books on Go and Rust.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Interesting thoughts on which language is better from John Arundel - a developer with 40 years of experience and the author of many books on Go and Rust.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
Build Go applications using Project IDX and the Gemini API ❤️
Project IDX is an AI-powered workspace for building rich apps in the cloud. In this article, the folks at Google show you how to build Go apps in minutes using Project IDX.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Project IDX is an AI-powered workspace for building rich apps in the cloud. In this article, the folks at Google show you how to build Go apps in minutes using Project IDX.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
Go 1.24 interactive tour ❤️
Go 1.24 is scheduled for release in February, so it's a good time to explore what's new. The official release notes are pretty dry, so the author prepared an interactive version with lots of examples showing what has changed and what the new behavior is. Read on and see!
Link to the article
#go #go@digest_golang #article #article@digest_golang
Go 1.24 is scheduled for release in February, so it's a good time to explore what's new. The official release notes are pretty dry, so the author prepared an interactive version with lots of examples showing what has changed and what the new behavior is. Read on and see!
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
if got, want: A Simple Way to Write Better Go Tests 🤡
There’s an excellent Go testing pattern that too few people know. You can learn it in 30 seconds.
Link to the article
#go #go@digest_golang #article #article@digest_golang
There’s an excellent Go testing pattern that too few people know. You can learn it in 30 seconds.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM