Is there any conventionally accepted repo that is representative of well designed go code ?

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
  • golang-standards/project-layout

    Standard Go Project Layout

    Try this! This isn't "official" in any way, but I've found it is a very helpful resource. It proposes a structure to use and links to large, well-known projects following similar structures.

  • waypoint

    Discontinued A tool to build, deploy, and release any application on any platform.

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

  • go-structure-examples

    Examples for my talk on structuring go apps

    Really surprised I haven’t seen katzien/go-structure-example and her GopherCon 2018 talk about structuring your Go projects mentioned yet

  • exposure-notifications-server

    Discontinued Exposure Notification Reference Server | Covid-19 Exposure Notifications

    It's also popular to hate on golang-standards/project-layout here (mostly due to its misleading name), but then you'll find Google's own project following its general approach.

  • wtf

    WTF Dial is an example web application written in Go. (by benbjohnson)

    Unfortunately, there is no agreement right now on how a project should be structured. The two "variants" are by domain (packages like product, order, customer each with its own handler and repository) or by layer (packages like api, postgres, etc). Ben Johnson is a big proponent of the layering approach and has an entire sample project written for it.

  • upspin

    Upspin: A framework for naming everyone's everything.

    Years ago when I was first getting into Go I found Upspin to be interesting reading (and I found it due to it being Rob Pike's project), but I don't know how it holds up today.

  • pkgsite

    [mirror] Home of the pkg.go.dev website

    The code behind pkg.go.dev is also open-source and might be an interesting read.

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

  • Orange Forum

    A light-weight forum

    Does orange forum count? https://github.com/s-gv/orangeforum

  • miller

    Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON

    Hmm, I'm no go expert, but one of the first tools written in go that I looked into is miller: https://github.com/johnkerl/miller

  • nsq

    A realtime distributed messaging platform

  • go-clean-template

    Clean Architecture template for Golang services

    There are actually a lot of them. Recently found this template go-clean-template which seems to be great

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