Go Library
4.13K subscribers
20 photos
63 files
805 links
Go (Golang) Library

Реклама: @ostinostin
Контент: @mxssl
Download Telegram
Memory leaks in Go

In this post, we are going to have a look at

- What is a memory leak
- Why are memory leaks bad
- Common causes for memory leaks in Go
- Methods for identifying memory leaks
- Investigate memory leaks


https://dev.to/gkampitakis/memory-leaks-in-go-3pcn
hatchet

Hatchet replaces difficult to manage legacy queues or pub/sub systems so you can design durable workloads that recover from failure and solve for problems like concurrency, fairness, and rate limiting. Instead of managing your own task queue or pub/sub system, you can use Hatchet to distribute your functions between a set of workers with minimal configuration or infrastructure.


https://github.com/hatchet-dev/hatchet
yokai

Simple, modular, and observable Go framework for backend applications.


https://github.com/ankorstore/yokai
mactop

mactop - Apple Silicon Monitor Top written in pure Go Lang! Under 1,000 lines of code.


https://github.com/context-labs/mactop
ntcharts

ntcharts is a Golang Terminal Charting library for the Bubble Tea Framework and other TUIs.


https://github.com/NimbleMarkets/ntcharts
Robust generic functions on slices

The slices package provides functions that work for slices of any type. In this blog post we’ll discuss how you can use these functions more effectively by understanding how slices are represented in memory and how that affects the garbage collector, and we’ll cover how we recently adjusted these functions to make them less surprising.


https://go.dev/blog/generic-slice-functions
One Billion Rows Challenge in Golang

The One Billion Row Challenge (1BRC) is intended to be a fun exploration of how far modern Java can be pushed for aggregating one billion rows from a text file.


https://www.bytesizego.com/blog/one-billion-row-challenge-go
goquery

goquery brings a syntax and a set of features similar to jQuery to the Go language. It is based on Go's net/html package and the CSS Selector library cascadia. Since the net/html parser returns nodes, and not a full-featured DOM tree, jQuery's stateful manipulation functions (like height(), css(), detach()) have been left off.


https://github.com/PuerkitoBio/goquery
gologin

Package gologin provides chainable login http.Handler's for Google, GitHub, Twitter, Facebook, Bitbucket, Tumblr, or any OAuth1 or OAuth2 authentication providers.


https://github.com/dghubble/gologin
sarama

Sarama is an MIT-licensed Go client library for Apache Kafka.


https://github.com/IBM/sarama
nilaway

NilAway is a static analysis tool that seeks to help developers avoid nil panics in production by catching them at compile time rather than runtime. NilAway is similar to the standard nilness analyzer, however, it employs much more sophisticated and powerful static analysis techniques to track nil flows within a package as well across packages, and report errors providing users with the nilness flows for easier debugging.


https://github.com/uber-go/nilaway
atomic

Simple wrappers for primitive types to enforce atomic access.


https://github.com/uber-go/atomic
multierr

multierr allows combining one or more Go errors together.


https://github.com/uber-go/multierr
air

When I started developing websites in Go and using gin framework, it was a pity that gin lacked a live-reloading function. So I searched around and tried fresh, it seems not much flexible, so I intended to rewrite it better. Finally, Air's born. In addition, great thanks to pilu, no fresh, no air :)

Air is yet another live-reloading command line utility for developing Go applications. Run air in your project root directory, leave it alone, and focus on your code.

Note: This tool has nothing to do with hot-deploy for production.


https://github.com/cosmtrek/air
gofr

Gofr is an opinionated microservice development framework.


https://github.com/gofr-dev/gofr
How I keep myself Alive using Golang

In this blog I explore how I use an incident management mindset to manage a complex medical condition. I hope you enjoy it!


https://www.bytesizego.com/blog/keeping-alive-with-go
The Impact of Pre-allocating Slice Memory on Performance in Golang

During my code reviews, I often focus on whether the slice initialization in the code has allocated the expected memory space, that is, I always request to change from var init []int64 to init := make([]int64, 0, length) format whenever possible. However, I had no quantitative concept of how much this improvement affects performance, and it was more of a dogmatic requirement. This blog will introduce the theoretical basis of how pre-allocating memory improves performance, quantitative measurements, and tools for automated detection.


https://oilbeater.com/en/2024/03/04/golang-slice-performance