-1
VAR()的手段,我去雖然由去-招搖生成的代碼,找到如下代碼:What't關於golang
// NewReceiveLearningLabActsParams creates a new ReceiveLearningLabActsParams object
// with the default values initialized.
func NewReceiveLearningLabActsParams() ReceiveLearningLabActsParams {
var()
return ReceiveLearningLabActsParams{}
}
我注意到這裏:
var()
我完全不瞭解什麼是手段,誰能幫我理解這段代碼?謝謝
那麼,這是一個空的var聲明塊(自動生成)。 – Volker
是的,只是令人困惑......如果block有多個參數,它可能是var(一個int,b字符串),只有一個參數「var(一個int)」,但是使用零參數這個特例 – lofcek
Thank all你的傢伙在這個幫助 – fisafoer