Read issue #1 of Daily Digest, by Mailbrew Team.
21
Tuesday January, 2025
Writing a circuit breaker in Go (2024)

Writing a circuit breaker in Go (2024)

Go in the Smallest of Places - Using Go in the lowest of low level

Go in the Smallest of Places - Using Go in the lowest of low level

How often do you use alternative Golang compilers?

Hi everyone, I'm learning about Go, and I've been wondering why/how often people resort to the "non standard" Go compilers (gccgo or llgo), I guess that they are worth a shot if someone is not really happy with the performances for the code generated by the default compiler?

Thanks :)

Starskey - Fast Persistent Embedded Key-Value Store (Inspired by LevelDB)

Hey everyone! I hope you’re all doing well. I haven’t posted in a while and thought I’d share a new open-source Go project I started. It’s called Starskey!

I’ve been diligently studying database internals, data structures, and more for almost two years now, writing many different things. This open-source key-value …

Building a Database from Scratch in Go (part 03) - Log Manager

Hello folks, here is part three of my building a database from scratch in Go.

In this part, I implemented the log manager, a component that is used to do write-ahead logging.

Write-ahead logging is one of the fundamental design principles of database design and is used to make the …

Chi with OpenAPI 3.0 / Swagger

I am trying to create a better workflow between a Golang backend and React frontend. Do you guys know of a library to autogenerate swagger or open api specification from Chi?

How do you separate application authorized / unauthorized paths?

There are some scenarios in which we have the same logic for authorized users, or system events.

Currently we structure it by usecases, but it's becoming harder to deduplicate or keep a clean signature for system / user paths

Do I need a DTO?

In my project, I just have a handler-> service layer (contains sql queries) pattern. I'm using the playground request validator library to validate my requests into a request struct, then pass that into my service function. I then do the query and return the response struct to the handler which …

Is GOPRIVATE actually needed?

Some days ago I set up GOPRIVATE because it was the first time that a package of us imported a private package.

It worked.

By chance I realized that it works without GOPRIVATE. Even in Github Workflows.

And I realized that this is not needed, too:

git config --global url."ssh://git@github.com/".insteadOf …

Semgrep rules for code style / code smells

I love semgrep (not affiliated) and I've used it to detect some code smells. While only an initial list, there's some interesting (for me) linters rising out of it:

  • Detect memory leak exposure on maps
  • Detect non-returning loops
  • Detect symbol usage code smells (atomic.Value)
  • Detect code smells like repeated Logger() …
Twitter, RSS, YouTube, Newsletters, Weather, Calendar, ...

You can customize this digest to include all the sites and sources you want.