-
One of my favorite examples is parser combinators, where small functions that parse individual pieces of syntax ("parselets") can be combined in increasing sophisticated ways using function composition to be able to recognize grammars. You can make a complete recursive descent parser that way. Here's one I cooked up in Go a long time ago: https://github.com/mcvoid/cmb
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
I only have private and work repos... But I use Uber fx. https://github.com/uber-go/fx
-
There's actually been talk on and off for years now about making that a first-class feature, but there's worry about confusion with, for example, io.Writer and io.Reader's methods having the exact same signature and only being differentiated by name, something that wouldn't apply to the feature.
-
I've actually just recently used this with both pointer and value reveivers in one of my own projects.
-
Im by no means a "purist" in such things, I love my magic and QoL-features/libs, but havent seen something that is so easy to use in go, that I immediately wanted to add it. And to be fair, I only looked closely at https://github.com/google/wire , others I have just skipped - and I will be looking into uber-fx as mentioned in the other comment.
-
wild-workouts-go-ddd-example
Go DDD example application. Complete project to show how to apply DDD, Clean Architecture, and CQRS by practical refactoring.
Clean architecture is not tied to some specific paradigm. It's a way of thinking about programs that is common to almost every mature developer. Many developers use it without even knowing the name - they just came to it by themselves through many tries and errors. There is a good free book about using it in Go, called Go with the Domain if you interested.
-
For reference I recommend Go By Example: https://gobyexample.com/
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives