bykof / go-plantuml

Generate plantuml diagrams from go source files or directories
MIT License
388 stars 27 forks source link

Handle cases relations to a pointer #10

Closed joonas closed 2 years ago

joonas commented 2 years ago

This addresses the case where a relationship from one struct to another is set up as a pointer.

I found this easiest to illustrate by changing both of the Address references in test/user/models/user.go to pointers, which results in the following diagram prior to this change:

image

And with the change it results in what you would expect:

image