标签: go struct mapping
我有一个随添加和删除字段而动态变化的映射,我想知道是否可以创建这样的结构
type Stats struct { cnt int category map[string]Events }
无需事先声明。谢谢!