Remake of this example using NetworkVizJS.
This example shows how easy it is to create a graph that changes dynamically.
| // go routine 返回值,main一般是不能获取的 | |
| // 需要通过channel,打通通道,得到返回值 | |
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| ) |
| 另附上 golang.org/x/xxx 包的手动安装方法: | |
| golang.org/x/xxx 这类包托管在 github.com/golang,从这里找到相应的包即可。比如 golang.org/x/crypto 包的安装,找到对应的地址为: https://github.com/golang/crypto ,运行以下命令: | |
| $ cd $GOPATH/src | |
| $ mkdir golang.org | |
| $ cd golang.org | |
| $ mkdir x | |
| $ cd x | |
| $ git clone https://github.com/golang/crypto.git | |
Remake of this example using NetworkVizJS.
This example shows how easy it is to create a graph that changes dynamically.