Best tools for making CRUD REST API in go?

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • ent

    An entity framework for Go

  • go-zero

    A cloud-native Go microservices framework with cli tool for productivity.

  • go-zero has lots goodies

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • mux

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

  • I keep seeing people suggest this, and I recently used it in my own project, but I was surprised to see that development for it has mostly come to a halt and they're looking for a new maintainer.

  • core

    Backend server API handling user mgmt, database, storage and real-time component (by staticbackendhq)

  • I maintain an open source project called StaticBackend (GitHub repo) - it does that precisely for you exposing an API for CRUD and queries with authentication.

  • oapi-codegen

    Generate Go client and server boilerplate from OpenAPI 3 specifications

  • swag

    Automatically generate RESTful API documentation with Swagger 2.0 for Go.

  • go-restful

    package for building REST-style Web Services using Go

  • I'm mainly using go-restful with the go-restful-openapi extension, mainly because it's easy and you get an openapi spec out of it.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • go-restful-openapi

    OpenAPI extension in Go for the go-restful package

  • I'm mainly using go-restful with the go-restful-openapi extension, mainly because it's easy and you get an openapi spec out of it.

  • SQLBoiler

    Generate a Go ORM tailored to your database schema.

  • For the DB I used gorm, but now I'm experimenting with sqlboiler combined with [sql-migrate](github.com/rubenv/sql-migrate), and postgrest simple CRUD stuff stuff I don't want to code anything for.

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