Golang for backend

This page summarizes the projects mentioned and recommended in the original post on /r/golang

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • Squirrel

    Fluent SQL generation for golang

    Database Access (no ORMs): sqlc for static queries and squirrel for dynamic queries (queries that are constructed depending on conditionals.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • sqlc

    Generate type-safe code from SQL

    Database Access (no ORMs): sqlc for static queries and squirrel for dynamic queries (queries that are constructed depending on conditionals.

  • sqlx

    general purpose extensions to golang's database/sql

    Using the correct driver to connect to the database + https://github.com/jmoiron/sqlx. You will always receive a JSON array on the output with which it is very convenient to work.

  • migrate

    Database migrations. CLI and Golang library.

    Migrations: migrate

  • mux

    Discontinued A powerful HTTP router and URL matcher for building Go web servers with 🦍

    HTTP Router: there a bunch of these, I prefer gorilla/mux but some other people prefer web frameworks like gin-gonic/gin

  • todo-api-microservice-example

    Go microservice tutorial project using Domain Driven Design and Onion Architecture!

    One word of advise I can give you is that building a production-grade microservice in Go takes a bit; not because of the language but because you have consider the tradeoffs when choosing different packages to connect everything to make it work (because there's no Django, Ruby on Rails or Spring), I have an educational repository (still work in progress) trying to describe what I've learned from the last 5 years after successfully deploying multiple services to production where multiple engineers contribute and collaborate together; perhaps that could help you.

  • goose

    A database migration tool. Supports SQL migrations and Go functions.

    https://github.com/pressly/goose. This migration tool is close to alembic.

  • exposure-notifications-server

    Discontinued Exposure Notification Reference Server | Covid-19 Exposure Notifications

    No worries, I was just saying isolate any database related operations specific to a package. https://github.com/google/exposure-notifications-server this is a pretty great example of a real world sql /go.

  • SQLBoiler

    Generate a Go ORM tailored to your database schema.

    https://github.com/volatiletech/sqlboiler cause is nice to have type safety, or sqlc, I use sqlx most of the time

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

  • Some Go web dev notes

    16 projects | news.ycombinator.com | 29 Sep 2024
  • Does gorm worth learning?

    6 projects | /r/golang | 8 Nov 2021
  • Eradicating N+1s: The Two-Phase Data Load and Render Pattern in Go

    4 projects | news.ycombinator.com | 28 May 2024
  • Go ORMs Compared

    5 projects | dev.to | 18 Jan 2024
  • Tenha controle sobre seu SQL com Golang e SQLC

    3 projects | dev.to | 25 Nov 2023

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