func ExtractMembers(page pagination.Page) ([]Member, error) {
	var resp struct {
		Members []Member `mapstructure:"members" json:"members"`
	}
	err := mapstructure.Decode(page.(MemberPage).Body, &resp)
	if err != nil {
		return nil, err
	}
	return resp.Members, nil
}
ExtractMembers accepts a Page struct, specifically a MemberPage struct,
and extracts the elements into a slice of Member structs. In other words,
a generic collection is mapped into a relevant slice.
package members
import (
	"github.com/mitchellh/mapstructure"
	"github.com/rackspace/gophercloud"
	"github.com/rackspace/gophercloud/pagination"
)
type Member struct {
	Status string
	Weight int
	AdminStateUp bool `json:"admin_state_up" mapstructure:"admin_state_up"`
	TenantID string `json:"tenant_id" mapstructure:"tenant_id"`
	PoolID string `json:"pool_id" mapstructure:"pool_id"`
	Address string
	ProtocolPort int `json:"protocol_port" mapstructure:"protocol_port"`
	ID string
}
type MemberPage struct {
	pagination.LinkedPageBase
}
func (p MemberPage) NextPageURL() (string, error) {
	type resp struct {
		Links []gophercloud.Link `mapstructure:"members_links"`
	}
	var r resp
	err := mapstructure.Decode(p.Body, &r)
	if err != nil {
		return "", err
	}
	return gophercloud.ExtractNextURL(r.Links)
}
func (p MemberPage) IsEmpty() (bool, error) {
	is, err := ExtractMembers(p)
	if err != nil {
		return true, nil
	}
	return len(is) == 0, nil
}