guonaihong/gout

支持Bind多个对象

Asterism12 opened this issue · 2 comments

	var responseStruct struct {
		Name string `json:"name"`
		Age  int    `json:"age"`
	}
	var responseStr string

	gout.GET("url").
		SetQuery(gout.H{}).
		BindJSON(&responseStruct).
		BindBody(&responseStr).
		Do()

	log.Println(responseStr)
	// do something with responseStruct ...

可以.我想想怎么实现...

用下v0.3.0版本。这个issue先关闭了。。。有问题可再打开。