github.com/xiaqingdoc/fabric@v2.1.1+incompatible/core/chaincode/platforms/golang/testdata/src/chaincodes/BadImport/main.go (about)

     1  /*
     2   * Copyright Greg Haskins All Rights Reserved
     3   *
     4   * SPDX-License-Identifier: Apache-2.0
     5   *
     6   */
     7  
     8  package main
     9  
    10  import (
    11  	"bogus/package"
    12  	"fmt"
    13  
    14  	"github.com/hyperledger/fabric-chaincode-go/shim"
    15  )
    16  
    17  // SimpleChaincode example simple Chaincode implementation
    18  type SimpleChaincode struct {
    19  }
    20  
    21  func main() {
    22  	err := shim.Start(new(SimpleChaincode))
    23  	if err != nil {
    24  		fmt.Printf("Error starting Simple chaincode: %s", err)
    25  	}
    26  }