网上好多都不对。
go get -v -u github.com/kataras/iris
在$GOPATH/src/golang.org/x目录下
D:GOProgramssrcgolang.orgx>git clone https://github.com/golang/crypto.git
Cloning into 'crypto'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 5599 (delta 0), reused 1 (delta 0), pack-reused 5595 eceiving objects: 99% (5593/5599), 4.50 MiB | 7.00 K
iB/s
Receiving objects: 100% (5599/5599), 4.50 MiB | 9.00 KiB/s, done.
Resolving deltas: 100% (3576/3576), done.
D:GOProgramssrcgolang.orgx>git clone https://github.com/golang/net.git
Cloning into 'net'...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 9213 (delta 7), reused 12 (delta 6), pack-reused 9194
Receiving objects: 100% (9213/9213), 7.67 MiB | 11.00 KiB/s, done.
Resolving deltas: 100% (6382/6382), done.
D:GOProgramssrcgolang.orgx>git clone https://github.com/golang/text.git
Cloning into 'text'...
remote: Enumerating objects: 17, done.
remote: Counting objects: 100% (17/17), done.
remote: Compressing objects: 100% (15/15), done.
Receiving objects: 14% (846/5813), 1.22 MiB | 1024 bytes/s
就是速度太慢了。