コード例 #1
0
ファイル: unmarshal.go プロジェクト: joemiller/env
// Unmarshal unmarshals the REST component of a response in a REST service.
func Unmarshal(r *service.Request) {
	if r.DataFilled() {
		v := reflect.Indirect(reflect.ValueOf(r.Data))
		unmarshalBody(r, v)
		unmarshalLocationElements(r, v)
	}
}