0
func (t *SimpleAsset) Init(stub shim.ChaincodeStubInterface) peer.Response
我一直在試圖理解hyperledger
中,我們使用Go
語言Chaincode
。但在這裏我無法理解(t* SimpleAsset)
是什麼。 我也明白,單位是函數的名稱,存根部分是論證和peer.Response
是返回類型。由於我是Go
的新手,請幫助我,謝謝。什麼是(T * SimpleAsset)在這個函數
'(T * SimpleAsset)'說,這是一個方法,'SimpleAsset'結構 – Malice
這是否意味着在走結構都像類或別的什麼方法呢? –
這應該清除一切:-)。 https://gobyexample.com/methods – Malice