这似乎可行:
操场
func requestParser(i interface{}) parser { return func(r io.Reader) (interface{}, error) { json.NewDeprer(r).Depre(i) return reflect.ValueOf(i).Elem(), nil }}func main() { var foo Foo s := "{"Name":"Logan"}" p := requestParser(&foo)}

![JSON解码为interface {}产生的结构体产生map [string] interface {},而不是struct JSON解码为interface {}产生的结构体产生map [string] interface {},而不是struct](http://www.mshxw.com/aiimages/31/436365.png)
