How do you align the values along the same column in the structs? Is this a feature of the gopls LSP? Or some other feature? Which command do you run for this? Thanks
Hello! Yes that's right, it's the Go LSP tools. A mixture of gopls, gofmt etc. Most IDE's / Neovim have great support for the Go tooling :) For example, you can install the Go extension in VS Code which should format your Go code for you. (Under the hood it installs the Go tooling binaries)
Very informative, I think it would be very helpful if you provided a link to the code you've explained in the video. This might just be a me thing, but I can understand a lot better when I have a complete view of the codebase while following along. Obviously, I'll leave that decision to you and regardless of that, you've earned a new subscriber.
we have Java at home
This made me laugh😅
Great video! I would also suggest making the fields of the User struct non-exported to prevent their modification outside the domain methods.
but the fields should be private in the Domain layer
The main issue i have with implementing DDD in Go is the folder structure it's very confusing at times..
This is how Go should be written. Type definitions over primitives are what makes this language so powerful.
How do you align the values along the same column in the structs? Is this a feature of the gopls LSP? Or some other feature? Which command do you run for this? Thanks
Hello! Yes that's right, it's the Go LSP tools. A mixture of gopls, gofmt etc. Most IDE's / Neovim have great support for the Go tooling :)
For example, you can install the Go extension in VS Code which should format your Go code for you. (Under the hood it installs the Go tooling binaries)
Should domain service method params be passed as already validated domain objects or should they be provided as primitive types (like in this video)?
Why orm layer should be insude domain
Db orm is your independent layer
I really liked this video and its structure. I will watch other videos as well. Great intro to DDD in Go, which is what I needed.
Thanks a lot for your comment! I’m glad it was useful :)
Nice video. It’s good to see a video on design patterns in go. Subbed and looking forward to the next.
Thanks a lot, really appreciated! Perfect timing too, I just released another 😁
nice intro to ddd would love to see how hexagonal arrch would fit in here
Thanks! You’re in luck - I just made a new video about hex arch with DDD 😊
Great video - really informative and didn’t ramble on! ‼️🎉
Thank you mate!
why not just use a validation lib that validates the whole struct? this seems quite excessive.
Primitive obsession?
Subscribed!
Thanks so much😊
Very informative, I think it would be very helpful if you provided a link to the code you've explained in the video. This might just be a me thing, but I can understand a lot better when I have a complete view of the codebase while following along. Obviously, I'll leave that decision to you and regardless of that, you've earned a new subscriber.
Thanks for your comment and for subscribing! I’ll add a link on future videos, and will update this video with a link too! - thanks again 😊
Give repo link plz
Very refreshing to see some real world application examples!
Thank you!
Hi Sam do you have email or LinkedIn contact for advice on developing learning materials for newbies using Golang?