github.com/sykesm/fabric@v1.1.0-preview.0.20200129034918-2aa12b1a0181/integration/lifecycle/chaincode/caller/cmd/main.go (about) 1 /* 2 Copyright IBM Corp. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package main 8 9 import ( 10 "fmt" 11 "os" 12 13 "github.com/hyperledger/fabric-chaincode-go/shim" 14 "github.com/hyperledger/fabric/integration/lifecycle/chaincode/caller" 15 ) 16 17 func main() { 18 err := shim.Start(&caller.CC{}) 19 if err != nil { 20 fmt.Fprintf(os.Stderr, "Exiting caller chaincode: %s", err) 21 os.Exit(2) 22 } 23 }