{"action":"opened","issue":{"url":"https://api.github.com/repos/marpaia/GonormCypher/issues/1","labels_url":"https://api.github.com/repos/marpaia/GonormCypher/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/marpaia/GonormCypher/issues/1/comments","events_url":"https://api.github.com/repos/marpaia/GonormCypher/issues/1/events","html_url":"https://github.com/marpaia/GonormCypher/issues/1","id":115030856,"number":1,"title":"Little issue in the AsNodes() function","user":{"login":"lorico","id":6830149,"avatar_url":"https://avatars.githubusercontent.com/u/6830149?v=3","gravatar_id":"","url":"https://api.github.com/users/lorico","html_url":"https://github.com/lorico","followers_url":"https://api.github.com/users/lorico/followers","following_url":"https://api.github.com/users/lorico/following{/other_user}","gists_url":"https://api.github.com/users/lorico/gists{/gist_id}","starred_url":"https://api.github.com/users/lorico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorico/subscriptions","organizations_url":"https://api.github.com/users/lorico/orgs","repos_url":"https://api.github.com/users/lorico/repos","events_url":"https://api.github.com/users/lorico/events{/privacy}","received_events_url":"https://api.github.com/users/lorico/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-04T11:18:00Z","updated_at":"2015-11-04T11:18:00Z","closed_at":null,"body":"Hello,\r\nI realized there is a little issue in the AsNodes function:\r\nThis part ::\r\nfor _, value := range r.Data[0].([]interface{}) {\r\n\t\tnode := new(Node)\r\n\t\tnode.Params = value.(map[string]interface{})[\"data\"].(map[string]interface{})\r\n\t\tnodes = append(nodes, node)\r\n\t}\r\n\r\nShould be replaced by ::\r\n\tfor _,d := range r.Data{\t\r\n\t\tfor _, value := range d.([]interface{}) {\r\n\t\t\tnode := new(Node)\r\n\t\t\tnode.Params = value.(map[string]interface{})[\"data\"].(map[string]interface{})\r\n\t\t\tnodes = append(nodes, node)\r\n\t\t}\r\n\t}\r\n\r\n=> Otherwise, you always get only 1 node (the first one), even if calling the function \"AllNodes\".\r\n\r\nTHANKS ! THIS WRAPPER ID JUST GREAT ! :)\r\n"}}