Go Library
4.11K subscribers
20 photos
63 files
798 links
Go (Golang) Library

Реклама: @ostinostin
Контент: @mxssl
Download Telegram
How to Build Smaller Container Images: Docker Multi-Stage Builds

https://labs.iximiuz.com/tutorials/docker-multi-stage-builds
vgt

vgt is a tool for visualising Go test results in a browser.


https://github.com/roblaszczak/vgt
jsony

A blazing fast and safe Go package for serializing JSON.


https://github.com/orsinium-labs/jsony
pg_flo

The easiest way to move and transform data between PostgreSQL databases using Logical Replication.


https://github.com/pgflo/pg_flo
Watermill 1.4 Released (Event-Driven Go Library)

https://threedots.tech/post/watermill-1-4
Go Runtime Finalizer and Keep Alive

So, here’s something interesting, there’s an API in Go’s runtime package called runtime.SetFinalizer. This little feature lets you set a “finalizer” for an object.


https://victoriametrics.com/blog/go-runtime-finalizer-keepalive
ML in Go with a Python sidecar

Machine learning models are rapidly becoming more capable; how can we make use of these powerful new tools in our Go applications?

For top-of-the-line commercial LLMs like ChatGPT, Gemini or Claude, the models are exposed as language agnostic REST APIs. We can hand-craft HTTP requests or use client libraries (SDKs) provided by the LLM vendors. If we need more customized solutions, however, some challenges arise. Completely bespoke models are typically trained in Python using tools like TensorFlow, JAX or PyTorch that don't have real non-Python alternatives.

In this post, I will present some approaches for Go developers to use ML models in their applications - with increasing level of customization. The summary up front is that it's pretty easy, and we only have to deal with Python very minimally, if at all - depending on the circumstances.


https://eli.thegreenplace.net/2024/ml-in-go-with-a-python-sidecar
when

when is a natural language date/time parser with pluggable rules and merge strategies


https://github.com/olebedev/when
errorx

The errorx library provides error implementation and error-related utilities.


https://github.com/joomcode/errorx
Go Profiling in Production

In this post, we'll explore the profiling tools we use. Golang provides a rich set of profiling tools to help uncover code bottlenecks.


https://blog.oodle.ai/go-profiling-in-production
Terminating Elegantly: A Guide to Graceful Shutdowns

For applications deployed in orchestrated environments (e.g., Kubernetes), graceful handling of termination signals is crucial.


https://packagemain.tech/p/graceful-shutdowns-k8s-go
Weak Pointers in Go: Why They Matter Now

https://victoriametrics.com/blog/go-weak-pointer
Run a Simple Go Web Service on NixOS

https://mtlynch.io/notes/simple-go-web-service-nixos
Lessons learned adding OpenTelemetry to a (Cobra) command-line Go tool

https://www.jvt.iss.one/posts/2024/11/17/cobra-otel-lessons
The smallest thing in Go

What is the smallest thing in Go? Well, I’m glad you asked!


https://bitfieldconsulting.com/posts/iota