后端开发 在 Go 中为何应使用空结构体 struct{} 作为纯方法类型的基础类型 Go 中推荐使用空结构体 struct{} 定义仅承载方法、不保存状态的类型,因其零内存开销、语义清晰且符合标 […]...