Best/Easiest Rest Framework

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

Our great sponsors
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • JetBrains - Developer Ecosystem Survey 2022
  • Scout APM - Less time debugging, more time building
  • autogold

    Automatically update your Go tests

    this way, you can switch around framework easily without changing the business logic, and all business logic easily testable without thinking about serialization at all (just matching the input struct and output struct, for example using https://github.com/hexops/autogold)

  • Fiber

    ⚡️ Express inspired web framework written in Go

    i like http://gofiber.io because it's similar to previous framework that i use (ruby's sinatra, node's expressjs)

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • counterfeiter

    A tool for generating self-contained, type-safe test doubles in go

    for dependency injection I suggest you use https://github.com/maxbrunsfeld/counterfeiter, but if you using really fast database (that can spawn fast using docker and has fast trx/sec) you can use it directly without dependency injection with https://github.com/ory/dockertest

  • dockertest

    Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.

    for dependency injection I suggest you use https://github.com/maxbrunsfeld/counterfeiter, but if you using really fast database (that can spawn fast using docker and has fast trx/sec) you can use it directly without dependency injection with https://github.com/ory/dockertest

  • chi

    lightweight, idiomatic and composable router for building Go HTTP services

    awesome! If you want some elegance, you can use go-chi which is fully compatible with the stdlib and is lightweight (I use it in my API services) - https://github.com/go-chi/chi

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