Introducing go-api-basic - another template/boilerplate RESTful web server

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

    A Go RESTful API template

  • I actually just opened up issue 18 to do just this as I think it's important. Thanks!

  • SendGrid

    The Official Twilio SendGrid Golang API Library

  • You're right on both of these, and I'm not settled on this at all. Struct initialization and element setting are something I haven't landed on yet for larger structs. Personally, I like the pattern like sendgrid uses for struct initialization (examples here). Using the context of my repo, seems like if they are just initializing a struct, they'd use NewMovie and if they are actually adding logic as part of the struct initialization, they'd use NewMovieInit (e.g. in their repo, NewV3Mail and NewV3MailInit).

  • 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
  • wild-workouts-go-ddd-example

    Go DDD example application. Complete project to show how to apply DDD, Clean Architecture, and CQRS by practical refactoring.

  • I personally have no issues with nesting, as long as the packages don't mix implementation details with the business rules - that's one thing I'd be careful with. If you'd like to compare the approach, here's another example (I'm one of the authors).

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