If you could go back in time | What would you do different regarding go

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

    Standard Go Project Layout

    When I started learning golang almost 9 years ago I've learned myself to structure it like a Laravel framework. The main api is also build in that fashion and to big to split it up or rebuild it.. Which bit me in the ass quite a few times. I recently switched job and am unlearning the MVC setup and trying to build it more like described here : https://github.com/golang-standards/project-layout

  • SaaSHub

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

    SaaSHub logo
  • service

    Starter-kit for writing services in Go using Kubernetes. (by ardanlabs)

    So what can you do insted? For testing databases, setup a docker instance for tests (e.g. like in https://github.com/ardanlabs/service), or start an embedded-postgres daemon (see https://github.com/fergusstrange/embedded-postgres). For communication with external APIs, just pass the http.Client (either in context.Context or as a field on the struct). Then in tests, you can override the http.Client.Transport func.

  • embedded-postgres

    Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test

    So what can you do insted? For testing databases, setup a docker instance for tests (e.g. like in https://github.com/ardanlabs/service), or start an embedded-postgres daemon (see https://github.com/fergusstrange/embedded-postgres). For communication with external APIs, just pass the http.Client (either in context.Context or as a field on the struct). Then in tests, you can override the http.Client.Transport func.

  • go-training

    Go Training Repositories regroups some useful resources to learn Go Programming Language

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

  • Read/Write FileSystem header interface for dependency injection

    7 projects | /r/golang | 29 May 2022
  • Web request fuzzer with go

    2 projects | /r/golang | 8 Feb 2021
  • Functional Programming in Go

    2 projects | news.ycombinator.com | 8 Nov 2024
  • Leverage Your Test Suite With testcontainers-go & docker-compose

    4 projects | dev.to | 4 Oct 2024
  • จัดการ Go dependencies tools ด้วย Go mod

    1 project | dev.to | 6 Sep 2024

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