这可行,但是很难看:
bd := RBody { Fields : []string{"time","id","status","customerId","additionalDetail"},PageInfo : struct {Start int `json:"start"`Rows int `json:"rows"`} {Start:1,Rows:2}}我建议您要么命名匿名结构,要么在声明中初始化Fields,并在以后使用赋值初始化PageInfo。

这可行,但是很难看:
bd := RBody { Fields : []string{"time","id","status","customerId","additionalDetail"},PageInfo : struct {Start int `json:"start"`Rows int `json:"rows"`} {Start:1,Rows:2}}我建议您要么命名匿名结构,要么在声明中初始化Fields,并在以后使用赋值初始化PageInfo。