Skip to content

v0.3.0版本

Compare
Choose a tag to compare
@guonaihong guonaihong released this 21 Jul 16:39
· 24 commits to master since this release
1d93dc6

支持多个对象的绑定。

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 ...