go

如何限制 interface{} 为特定类型

英文: How to limit interface{} for specific types 问题 我正在使用Go语言,我有一个工厂函数,根据请求的标识符返回不同类型的对象: func NewObj...