recovered专题

Go反射问题记录panic: reflect: call of reflect.Value.Elem on struct Value [recovered]

报错时的情景: panic: reflect: call of reflect.Value.Elem on struct Value [recovered]     panic: reflect: call of reflect.Value.Elem on struct Value 基于反射给结构体赋值时出现的。 看看出问题的代码: ms := Abc{}sValue := ref