https://shaffer.cn/golang/insights-into-empty-struct/ 背景偶然发现项目代码中有如下的写法: 12345678type Student struct { Name string Age int}func NewStudent(s Student) *Student { return &s} 我们且不去探讨“这样写法有什么作用”、“为什么要这样写”,我们先就代码本身讨论。 众所周知,从严格意义上来说,go