Golang drawer
178 subscribers
1 photo
5.03K links
Curated Golang news
Download Telegram
https://failsafe-go.dev/

Failsafe-go is a library for building fault tolerant Go applications. It works by wrapping executable logic with one or more resilience policies, which can be combined and composed as needed. Policies include:
• Failure handling: Retry, Fallback
• Load limiting: Circuit Breaker, Bulkhead, Rate Limiter, Cache
• Time limiting: Timeout, Hedge
gohack can be useful in some cases where a quick check is all you need. Since gohack obtains the dependency on its own, it makes it a bit faster to use than cloning manually. That said, I'd be concerned about committing the replace line accidentally, which is why I think the workspace approach is safer (and also more explicit)

https://eli.thegreenplace.net/2024/locally-patching-dependencies-in-go/
My usecase was ethical hacking, I needed to send 500 million of non RFC compliant HTTP/1.1 requests to 2.5 million hosts in a short period of time - ideally in a couple of hours.


https://www.moczadlo.com/2024/how-i-sent-500-million-http-requests-in-under-24h
In 2023, Go 1.21 introduced profile-guided optimization, or PGO. With PGO, you can provide the Go compiler a profile of your application at runtime, which the Go compiler then uses to make smarter decisions about how to optimize your code on the next build


https://cloud.google.com/blog/products/application-development/using-profile-guided-optimization-for-your-go-apps
If you use Timer.Reset() in Go 1.22 or earlier, you may be doing it wrong. Even the book 100 Go Mistakes (which is usually right about Go nuances) got it wrong


https://antonz.org/timer-reset/
It's a milestone day for Gophers and WebAssembly: the wasi-preview-2 feature branch of TinyGo has landed in TinyGo's dev branch, bringing WASI P2 support to TinyGo


https://wasmcloud.com/blog/compile-go-directly-to-webassembly-components-with-tinygo-and-wasi-p2
In today's digital age, images play a crucial role in various applications and services. However, managing and extracting metadata from these images can be a challenging task, especially when dealing with large volumes of data. In this article, we'll explore how to leverage AWS Lambda, Go, and PostgreSQL to create an automated system for extracting EXIF data from images and storing it in a database


https://docs.rapidapp.io/blog/automating-image-metadata-extraction-with-aws-lambda-go-and-postgresql
The context API is a critical foundation for modern Go development. This is especially the case with APIs that use concurrency under the hood or perform distributed operations. Given this, I would like to do a deep dive on several topics around the context API. I expect this post to be the first of several. In this one, I cover contexts and program scopes


https://matttproud.com/blog/posts/contextualizing-context-scopes.html
Identity providers (IAMs) allow users to log in to related, yet independent, platforms using a single set of credentials


https://permify.co/post/implement-oauth-2-golang-app/
Joker is a small interpreted dialect of Clojure written in Go. It is also a Clojure(Script) linter


https://joker-lang.org