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

Реклама: @ostinostin
Контент: @mxssl
Download Telegram
Go and Postgres Listen/Notify or: How I Learned to Stop Worrying and Love PubSub

This post is going to show you how to use Listen/Notify in your Golang applications with pgx Conn.WaitForNotification


https://brojonat.com/posts/go-postgres-listen-notify
go-graphviz

Go bindings for Graphviz


https://github.com/goccy/go-graphviz
notify

A dead simple Go library for sending notifications to various messaging services.


https://github.com/nikoksr/notify
bun

SQL-first Golang ORM


https://github.com/uptrace/bun
asynq

Asynq is a Go library for queueing tasks and processing them asynchronously with workers. It's backed by Redis and is designed to be scalable yet easy to get started.


https://github.com/hibiken/asynq
BemiDB

BemiDB is a Postgres read replica optimized for analytics. It consists of a single binary that seamlessly connects to a Postgres database, replicates the data in a compressed columnar format, and allows you to run complex queries using its Postgres-compatible analytical query engine.


https://github.com/BemiHQ/BemiDB
Writing secure Go code

What does it mean to keep security in mind when writing Go code? Answering this question in one short article seems impossible. For this reason, we will narrow it down to a few specific practices.


https://jarosz.dev/article/writing-secure-go-code
lazyjournal

TUI for journalctl, logs in the file system and docker containers for quick viewing and filtering with fuzzy find and regex support.


https://github.com/Lifailon/lazyjournal
Building thread-safe abstractions in Java versus Go

https://rybicki.io/blog/2024/11/03/multithreaded-code-java-golang.html
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