-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