Some Go(lang) tips

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
  1. zerolog

    Zero Allocation JSON Logger

    What to use I prefer zerolog, but zap isn't bad either. Both boast zero-allocation, which is what you want for a task that should have the smallest possible impact on your application.

  2. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  3. zap

    Blazing fast, structured, leveled logging in Go.

    What to use I prefer zerolog, but zap isn't bad either. Both boast zero-allocation, which is what you want for a task that should have the smallest possible impact on your application.

  4. easyjson

    Fast JSON serializer for golang.

    What to use Easyjson is about the top of the pack and it's straightforward. The downside of efficient tools is that they use code generation to create the code required to turn your structs into json to minimise allocations. This is a manual build step which is annoying. Interestingly json-iterator also uses reflection but it's significantly faster. I suspect black magic.

  5. jsoniter

    A high-performance 100% compatible drop-in replacement of "encoding/json" (by json-iterator)

    What to use Easyjson is about the top of the pack and it's straightforward. The downside of efficient tools is that they use code generation to create the code required to turn your structs into json to minimise allocations. This is a manual build step which is annoying. Interestingly json-iterator also uses reflection but it's significantly faster. I suspect black magic.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Go structured logging log/slog middleware

    1 project | news.ycombinator.com | 21 Dec 2023
  • Slogtest

    1 project | news.ycombinator.com | 16 Aug 2023
  • claim: qlog is faster, simpler and more efficient that slog; and does more practically useful stuff too

    4 projects | /r/golang | 14 May 2023
  • Log: A minimal, colorful Go logging library 🪵

    2 projects | /r/commandline | 21 Feb 2023
  • Best Logging Library for Golang

    6 projects | dev.to | 12 Feb 2023

Did you know that Go is
the 4th most popular programming language
based on number of references?