func (r GetResult) Extract() (*HomeDocument, error) {
	if r.Err != nil {
		return nil, r.Err
	}
	submap, ok := r.Body.(map[string]interface{})["resources"]
	if !ok {
		return nil, errors.New("Unexpected HomeDocument structure")
	}
	casted := HomeDocument(submap.(map[string]interface{}))
	return &casted, nil
}
Extract is a function that accepts a result and extracts a home document resource.
package base
import (
	"errors"
	"github.com/rackspace/gophercloud"
)
type HomeDocument map[string]interface{}
type GetResult struct {
	gophercloud.Result
}