Golang drawer
@golang101
178
subscribers
1
photo
5.03K
links
Curated Golang news
Download Telegram
Join
Golang drawer
178 subscribers
Golang drawer
https://tip.golang.org/doc/gc-guide
tip.golang.org
A Guide to the Go Garbage Collector - The Go Programming Language
Golang drawer
https://tpaschalis.me/golang-multierr/
tpaschalis.me
Joining errors in Go
I recently realized that the stdlib errors package in Go supports joining
multiple errors in addition to the more common %w wrapping.
Golang drawer
https://tqdev.com/2024-distributed-metrics-in-php-using-go-and-gob
Tqdev
Distributed metrics in PHP using Go and Gob
In the previous post I showed how to do high frequency metrics in PHP with TCP sockets. In this post I'll show how to collect and combine metrics from multiple PHP application servers. Instead of sending the log lines from each server to a single node, the…
Golang drawer
https://www.dolthub.com/blog/2024-10-04-reflecting-on-reflect/
Dolthub
Reflecting on Go Reflection
Golang reflection is wonderfully horrible. Let's reflect on it.
Golang drawer
https://registerspill.thorstenball.com/p/glad-i-did-it-in-go
Thorstenball
Glad I did it in Go
Go, the greatest teaching language?
Golang drawer
https://victoriametrics.com/blog/go-sync-map/index.html
VictoriaMetrics
Go sync.Map: The Right Tool for the Right Job
Go’s sync.Map isn’t a magic bullet for all concurrent map needs. It’s got some good tricks up its sleeve, like handling reads without locking, but it’s not always the best choice. This article dives into how sync.Map works under the hood, from its two-map…
Golang drawer
https://devblogs.microsoft.com/go/high-resolution-timers-windows/
Microsoft News
High-Resolution Timers on Windows
The Go Windows port added support for high-resolution timers in Go 1.23, boosting the resolution of time.Sleep from ~15.6ms to ~0.5ms.
Golang drawer
https://rednafi.com/go/circuit_breaker/
Redowan's Reflections
Writing a circuit breaker in Go
Besides retries, circuit breakers are probably one of the most commonly employed
resilience patterns in distributed systems. While writing a retry routine is pretty simple,
implementing a circuit breaker needs a little bit of work.
I realized that I usually…
Golang drawer
https://www.bytesizego.com/blog/go-embed
Bytesizego
Using Go Embed
The go:embed feature simplifies the inclusion of static assets in your Go applications. By embedding files and directories at compile time, you can create more portable and self-contained binaries.
Golang drawer
https://threedots.tech/post/distributed-transactions-in-go
threedots.tech
Distributed Transactions in Go: Read Before You Try
In the previous post, I looked into running transactions in a layered architecture. Now, let’s consider transactions that need to span more than one service.
If you work with microservices, a time may come when you need a transaction running across them.…
Golang drawer
https://go.dev/blog/15years
go.dev
Go Turns 15 - The Go Programming Language
Happy 15th birthday, Go!
Golang drawer
https://github.com/golang/go/discussions/70257
GitHub
memory regions · golang go · Discussion #70257
I'm starting this discussion to collect early feedback on a draft design for a kind of region-based memory management in Go. There is no prototype yet, only a design and a preliminary evaluatio...
Golang drawer
https://github.com/wasmvision/wasmvision
GitHub
GitHub - wasmvision/wasmvision: wasmVision gets you going with computer vision using WebAssembly.
wasmVision gets you going with computer vision using WebAssembly. - wasmvision/wasmvision
Golang drawer
https://www.dolthub.com/blog/2024-11-08-sprintf-vs-concat/
Dolthub
fmt.Sprintf vs String Concat
Blog for DoltHub, a website hosting databases made with Dolt, an open-source version-controlled SQL database with Git-like semantics.
Golang drawer
https://victoriametrics.com/blog/go-runtime-finalizer-keepalive/
VictoriaMetrics
Go Runtime Finalizer and Keep Alive
Go’s runtime package provides two intriguing features: Finalizers and KeepAlive, which help manage object lifecycle in unique ways. Finalizers let you attach cleanup functions to objects that run when they’re garbage collected. Meanwhile, KeepAlive serves…
Golang drawer
https://jitesh117.github.io/blog/creating-a-brainrot-language-server-in-golang/
jitesh117.github.io
Creating a Brainrot Language Server in Golang
I was reading the language server protocol docs and about json-rpc for collaborating on a new project which will need an LSP server. Since it was getting a little boring to just read so much of documentations and RFCs, I thought of making a small and fun…
Golang drawer
https://eli.thegreenplace.net/2024/ml-in-go-with-a-python-sidecar/
Golang drawer
https://jarosz.dev/article/writing-secure-go-code/
Jakub Jarosz
Writing Secure Go Code
Security testing starts with understanding vulnerabilities. The CVE website lists known software flaws. The OWASP Top Ten highlights common weaknesses. With this knowledge, we can improve our Go development. This article shows how to put in place robust practices.…
Golang drawer
https://medium.com/@tonywangcn/27-6-of-the-top-10-million-sites-are-dead-6bc7805efa85
Medium
27.6% of the Top 10 Million Sites are Dead
The internet, in many ways, has a memory. From archived versions of old websites to search engine caches, there’s often a way to dig into…
Golang drawer
https://eli.thegreenplace.net/2024/ranging-over-functions-in-go-123/