Ugh, marshal needs a pointer, derrrr

pull/743/head
Paul Dix 2014-07-10 14:35:15 -04:00
parent ac2e0a6a8c
commit bdea460f06
1 changed files with 1 additions and 1 deletions

View File

@ -546,7 +546,7 @@ func (self *Client) GetShardSpaces() ([]*ShardSpace, error) {
return nil, err
}
spaces := []*ShardSpace{}
err = json.Unmarshal(body, spaces)
err = json.Unmarshal(body, &spaces)
if err != nil {
return nil, err
}