使用了老师的https://git.imooc.com/coding-268/coding-268/src/imooc分支也没能解决。。。
root@zhang-GL502VM:/home/zhang/go/src/github.com/hyperledger/fabric/imocc/application# go build
main.go:10:2: cannot find package "github.com/gin-gonic/gin" in any of:
/usr/local/go/src/github.com/gin-gonic/gin (from $GOROOT)
/root/go/src/github.com/gin-gonic/gin (from $GOPATH)
main.go:11:2: cannot find package "github.com/hyperledger/fabric-sdk-go/pkg/client/channel" in any of:
/usr/local/go/src/github.com/hyperledger/fabric-sdk-go/pkg/client/channel (from $GOROOT)
/root/go/src/github.com/hyperledger/fabric-sdk-go/pkg/client/channel (from $GOPATH)
main.go:12:2: cannot find package "github.com/hyperledger/fabric-sdk-go/pkg/client/ledger" in any of:
/usr/local/go/src/github.com/hyperledger/fabric-sdk-go/pkg/client/ledger (from $GOROOT)
/root/go/src/github.com/hyperledger/fabric-sdk-go/pkg/client/ledger (from $GOPATH)
main.go:13:2: cannot find package "github.com/hyperledger/fabric-sdk-go/pkg/client/resmgmt" in any of:
/usr/local/go/src/github.com/hyperledger/fabric-sdk-go/pkg/client/resmgmt (from $GOROOT)
/root/go/src/github.com/hyperledger/fabric-sdk-go/pkg/client/resmgmt (from $GOPATH)
main.go:14:2: cannot find package "github.com/hyperledger/fabric-sdk-go/pkg/core/config" in any of:
/usr/local/go/src/github.com/hyperledger/fabric-sdk-go/pkg/core/config (from $GOROOT)
/root/go/src/github.com/hyperledger/fabric-sdk-go/pkg/core/config (from $GOPATH)
main.go:15:2: cannot find package "github.com/hyperledger/fabric-sdk-go/pkg/fabsdk" in any of:
/usr/local/go/src/github.com/hyperledger/fabric-sdk-go/pkg/fabsdk (from $GOROOT)
/root/go/src/github.com/hyperledger/fabric-sdk-go/pkg/fabsdk (from $GOPATH)