偷个懒行不行? type Test struct { } func main() { container := make(map[string]interface{}) t := &Test{} container["test"] = t t := container["test"].(*Test) }GO设计模式-DI容器
偷个懒行不行?
GO设计模式-DI容器