获取fabric源码

go get -u -v github.com/hyperledger/fabric

如果上述命令拉去失败,可以使用git从github上面拉取,执行下面命令

mkdir -p /opt/gopath/src/github.com/hyperledger
cd -p /opt/gopath/src/github.com/hyperledger
git clone https://github.com/hyperledger/fabric.git

进入到fabric源码目录中,查看

cd /opt/gopath/src/github.com/hyperledger/fabric