Reflection.Value.Set仅接受
reflect.Value作为参数。
reflect.ValueOf在您的stringValue上使用:
item.Elem().FieldByName("Name").Set(reflect.ValueOf(&stringValue))游乐场:http :
//play.golang.org/p/DNxsbCsKZA。

Reflection.Value.Set仅接受
reflect.Value作为参数。
reflect.ValueOf在您的stringValue上使用:
item.Elem().FieldByName("Name").Set(reflect.ValueOf(&stringValue))游乐场:http :
//play.golang.org/p/DNxsbCsKZA。