hhstore / blog

My Tech Blog: about Mojo / Rust / Golang / Python / Kotlin / Flutter / VueJS / Blockchain etc.
https://github.com/hhstore/blog/issues
292 stars 24 forks source link

Golang: Dependency Graph Visualization Tool #145

Open hhstore opened 5 years ago

hhstore commented 5 years ago

go 源码阅读:

code UML 生成:

goland IDE 阅读:

image

image

image

go-diagram:


glide install
# install client dependencies
yarn install-client
# build client
yarn build-client

# start server in hot-reload mode
yarn start <directory name>
# run client in dev mode
yarn client

# 源码UML生成: 
yarn start $GOPATH/src/github.com/micro/go-micro

# 浏览器打开查看
hhstore commented 5 years ago

golang 依赖可视化:

go官方包:

项目:

其他:

ref:

hhstore commented 5 years ago

go-callvis:

使用:

go get -u -v github.com/TrueFurby/go-callvis

或者:

gopm get -u -v github.com/TrueFurby/go-callvis

install:

cd $GOPATH/src/github.com/TrueFurby/go-callvis && make


- 使用:  以 https://github.com/micro/go-micro 为例: 

```bash

cd $GOPATH/src/github.com/micro/go-micro

go-callvis [flags] <main package>

# 当前目录:
go-callvis .