Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add GraphPrintTree #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

add GraphPrintTree #5

wants to merge 3 commits into from

Conversation

vc60er
Copy link

@vc60er vc60er commented Jul 8, 2022

add GraphPrintTree, can print like this:

dependence tree:
┌── target(int=123)
├── wait(int=123)
├── timeout(int=123)
├── path_string(string=path string)
├── path_strings([]string=[path1 path2])
├── path_map(map[string]int=map[path1:1 path2:2])
├── test(*main.Test=0xc0000bc240)
│    ├── target(int=123)
│    ├── timeout(int=123)
│    ├── path_string(string=path string)
│    ├── path_strings([]string=[path1 path2])
│    └── path_map(map[string]int=map[path1:1 path2:2])
└── dep(*main.Dep=0xc000096290)
     ├── test(*main.Test=0xc0000bc240)
     │    ├── target(int=123)
     │    ├── timeout(int=123)
     │    ├── path_string(string=path string)
     │    ├── path_strings([]string=[path1 path2])
     │    └── path_map(map[string]int=map[path1:1 path2:2])
     └── wait(int=123)

@teou
Copy link
Owner

teou commented Jul 14, 2022

good idea.
please add unit tests for this merge request @vc60er .

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.

2 participants