Boilerplate for experienced devs

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

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • SaaSHub - Software Alternatives and Reviews
  • golang-standards/project-layout

    Standard Go Project Layout

    About golang-standards/project-layout: You may want to read about this issue https://github.com/golang-standards/project-layout/issues/117. Basically the projects name is misleading and the layout is definitely not standard.

  • go-kit

    A standard library for microservices.

    If you're dealing with microservices then you can also look at https://gokit.io/

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • go-patterns

    Curated list of Go design patterns, recipes and idioms

  • simple_gopher

    Boilerplate for writing Go applications without framework using hexagonal application development approach

  • casbin

    An authorization library that supports access control models like ACL, RBAC, ABAC in Golang

    For RBAC/ABAC take a look at Cabin: https://github.com/casbin/casbin

  • jennifer

    Jennifer is a code generator for Go

    I just spent a few hours writing a crapload of boilerplate code generation code with jennifer, if that helps any.

  • go-oidc-middleware

    OpenID Connect (OIDC) http middleware for Go

    I’ve built a library to try and make it easier to consume these services and their JWTs that works with net/http, mux, chi, gin, echo and fiber if you don’t want to implement the logic of discovery and validation yourself: https://github.com/XenitAB/go-oidc-middleware

  • 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.

  • service

    Starter code for writing web services in Go using Kubernetes. (by ardanlabs)

    For a general web app stuff I like to use this repository as a reference https://github.com/ardanlabs/service

  • ent

    An entity framework for Go

  • zap

    Blazing fast, structured, leveled logging in Go.

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