Our great sponsors
-
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.
-
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: https://discord.gg/S5UjpzGZjN
-
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.
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.
If you're dealing with microservices then you can also look at https://gokit.io/
For RBAC/ABAC take a look at Cabin: https://github.com/casbin/casbin
I just spent a few hours writing a crapload of boilerplate code generation code with jennifer, if that helps any.
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
For a general web app stuff I like to use this repository as a reference https://github.com/ardanlabs/service
Related posts
- Nunu: A CLI tool for building Go applications
- What's your go to literature to build Go libraries?
- I'm coming from Java and I have been told that I'm writing go like I'm writing Java. Basically creating structs, injecting fields, and attaching methods. What else can I do?
- Como deixar o Swagger com tema dark mode usando Swaggo e Golang
- Can I point a module to a subdirectory?