Skip to content

Change to stop crash on compile and run of example.#1

Open
vernonr3 wants to merge 1 commit intorendis:masterfrom
vernonr3:master
Open

Change to stop crash on compile and run of example.#1
vernonr3 wants to merge 1 commit intorendis:masterfrom
vernonr3:master

Conversation

@vernonr3
Copy link
Copy Markdown

Change line 15 in example/main.go to take the address of the structure. This was being caught on line 11 of checker.go where the value is checked to ensure it is a pointer. This make the example work again. Suspect that the rule validation was changed after the example was constructed.

Looks like a very useful ability for DDD. As the rules will enable fields in structs to be combined/changed etc. to map across bounded contexts.
Is this being used in live production environments?

Change line 15 in example/main.go to take the address of the structure. This was being caught on line 11 of checker.go where the value is checked to ensure it is a pointer.
This make the example work again. Suspect that the rule validation was changed after the example was constructed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant