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

Реклама: @ostinostin
Контент: @mxssl
Download Telegram
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
Building a distributed log using S3 (under 150 lines of Go)

https://avi.im/blag/2024/s3-log
dRPC is looking for a backend developer with experience in Go and Kotlin

https://knowing-lift-507.notion.site/Backend-developer-Golang-Kotlin-14d03cb34a4d8007b00ced454ec06bb8
shortuuid

A Go library that generates concise, unambiguous, URL-safe UUIDs. Based on and compatible with the Python library shortuuid.


https://github.com/lithammer/shortuuid
Go Protobuf: The new Opaque API

https://go.dev/blog/protobuf-opaque
Gist of Go: Goroutines

This is a chapter from my book on Go concurrency, which teaches the topic from the ground up through interactive examples.

Let's skip the long talk about concurrency and parallelism and jump right into writing a concurrent program in Go!


https://antonz.org/go-concurrency/goroutines