github.com/xiaqingdoc/fabric@v2.1.1+incompatible/integration/chaincode/marbles/cmdwithindexspecs/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/chaincode/marbles"
    15  )
    16  
    17  func main() {
    18  	err := shim.Start(&marbles.SimpleChaincode{})
    19  	if err != nil {
    20  		fmt.Fprintf(os.Stderr, "Exiting marbles.SimpleChaincode: %s", err)
    21  		os.Exit(2)
    22  	}
    23  }