github.com/Hnampk/my-fabric@v0.0.0-20201028083322-75069da399c0/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  }