Golang Ddd Refactor

Refactor existing Go code toward a behavior-first, invariant-protecting domain model. Use when business rules live in handlers or repositories, shared structs couple DB and API models, entities expose setters or mutable public fields, or a service needs domain methods, constructors, private state, repository update closures, and focused domain tests.

joeyave Updated

File contents

joeyave/golang-ddd-skills/tree/main/skills/golang-ddd-refactor commit f2f786df54

Frequently asked questions

npx skillmds@latest add joeyave/golang-ddd-refactor