@@ -12,6 +12,7 @@ A tool to build dependency graph for go programs based on dependency injection f
12
12
https://github.com/google/wire/blob/main/_tutorial/main.go
13
13
14
14
## c4 plantuml component
15
+
15
16
``` puml
16
17
@startuml
17
18
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml
@@ -29,6 +30,8 @@ Rel(main.Event, main.Greeter, main.Greeter)
29
30
@enduml
30
31
```
31
32
33
+ http://www.plantuml.com/plantuml/uml/RO_1QiGW48RlFeNDgO5klFJKOqFPInTAeUSmcmn6K2CwDYobxzvHaYvTUX3znfdlrplZHvidb3DHI4zAHLWxRMZEvvmmZeidzDIDYrF1WgVix27HPCrPzO-7jrBwEBqg1uamScde5nSMNsO2zmf1XYnAGXu20hMQY4C25omAqRCTZCSuF2_PJn0lzuxvGJPbQrhv9NvrzQOxHaGEsZfsR9ZBsb2Q96dcq4j0ESuGDKvovJz9NHgCrr9dVb3gclOsuEMJZxk-mYwlKDGWDR0-5i_LYh7gnBTuHtlps4edJ0aq_gNsshqb_pEvKIj-0000
34
+
32
35
## mermaid class
33
36
34
37
``` mermaid
@@ -37,8 +40,6 @@ main_Greeter ..> main_Message
37
40
main_Event ..> main_Greeter
38
41
```
39
42
40
- http://www.plantuml.com/plantuml/uml/RO_1QiGW48RlFeNDgO5klFJKOqFPInTAeUSmcmn6K2CwDYobxzvHaYvTUX3znfdlrplZHvidb3DHI4zAHLWxRMZEvvmmZeidzDIDYrF1WgVix27HPCrPzO-7jrBwEBqg1uamScde5nSMNsO2zmf1XYnAGXu20hMQY4C25omAqRCTZCSuF2_PJn0lzuxvGJPbQrhv9NvrzQOxHaGEsZfsR9ZBsb2Q96dcq4j0ESuGDKvovJz9NHgCrr9dVb3gclOsuEMJZxk-mYwlKDGWDR0-5i_LYh7gnBTuHtlps4edJ0aq_gNsshqb_pEvKIj-0000
41
-
42
43
# Installation
43
44
44
45
` go install github.com/emilien-puget/go-dependency-graph@latest `
@@ -51,14 +52,17 @@ http://www.plantuml.com/plantuml/uml/RO_1QiGW48RlFeNDgO5klFJKOqFPInTAeUSmcmn6K2C
51
52
52
53
Available generator are as follows
53
54
54
- - ` c4_plantuml_component ` , the default value, more information about that format here : https://github.com/plantuml-stdlib/C4-PlantUML
55
+ - ` c4_plantuml_component ` , the default value, more information about that format
56
+ here : https://github.com/plantuml-stdlib/C4-PlantUML
55
57
- ` json ` , the struct ` parse.AstSchema ` encoded in JSON
56
- - ` mermaid_class ` , a class diagram using mermaid syntax https://mermaid-js.github.io/mermaid/#/classDiagram?id=class-diagrams
58
+ - ` mermaid_class ` , a class diagram using mermaid
59
+ syntax https://mermaid-js.github.io/mermaid/#/classDiagram?id=class-diagrams
57
60
58
61
### With the result written to a file
59
62
60
63
` go-dependency-graph --project=<path to project> --result=<result file> `
61
64
62
65
### With the result piped
66
+
63
67
` go-dependency-graph --project=<path to project> > <piped> `
64
68
0 commit comments