{"action":"created","issue":{"url":"https://api.github.com/repos/rodesousa/luz-lantern/issues/4","repository_url":"https://api.github.com/repos/rodesousa/luz-lantern","labels_url":"https://api.github.com/repos/rodesousa/luz-lantern/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/rodesousa/luz-lantern/issues/4/comments","events_url":"https://api.github.com/repos/rodesousa/luz-lantern/issues/4/events","html_url":"https://github.com/rodesousa/luz-lantern/issues/4","id":151389714,"number":4,"title":"Mapping or not mapping","user":{"login":"rodesousa","id":8577532,"avatar_url":"https://avatars.githubusercontent.com/u/8577532?v=3","gravatar_id":"","url":"https://api.github.com/users/rodesousa","html_url":"https://github.com/rodesousa","followers_url":"https://api.github.com/users/rodesousa/followers","following_url":"https://api.github.com/users/rodesousa/following{/other_user}","gists_url":"https://api.github.com/users/rodesousa/gists{/gist_id}","starred_url":"https://api.github.com/users/rodesousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodesousa/subscriptions","organizations_url":"https://api.github.com/users/rodesousa/orgs","repos_url":"https://api.github.com/users/rodesousa/repos","events_url":"https://api.github.com/users/rodesousa/events{/privacy}","received_events_url":"https://api.github.com/users/rodesousa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-27T13:45:43Z","updated_at":"2016-04-28T08:17:41Z","closed_at":null,"body":"Bon @ptavares, faut choisir.\r\n\r\nLa technique que j'avais mis en place était de mappé correctement le yaml jusqu'au argument:\r\n\r\n```\r\n  cmd:\r\n      - user:\r\n          name: aze \r\n      - user:\r\n          name: lala\r\n      - user:\r\n          name : ippon\r\n      - user:\r\n          name : root \r\n```\r\n\r\nD'ou map[string][]map[string]map[string]interface{}\r\n(le dernier interface nous permet d'avoir en argument soit un array soit une variable)\r\n\r\nC'est pour cela que j'avais fait ds un objet Shard un var arg qui a comme type map[string]interface{} pour que dans le mapping on a qu'a faire un :\r\n\r\n```\r\narg = value\r\n```\r\n\r\nSur la dev j'ai mis le code. J'ai pas delete l'ancienne facon (List.list).\r\n\r\nOn prend quoi ? =)"},"comment":{"url":"https://api.github.com/repos/rodesousa/luz-lantern/issues/comments/215346705","html_url":"https://github.com/rodesousa/luz-lantern/issues/4#issuecomment-215346705","issue_url":"https://api.github.com/repos/rodesousa/luz-lantern/issues/4","id":215346705,"user":{"login":"rodesousa","id":8577532,"avatar_url":"https://avatars.githubusercontent.com/u/8577532?v=3","gravatar_id":"","url":"https://api.github.com/users/rodesousa","html_url":"https://github.com/rodesousa","followers_url":"https://api.github.com/users/rodesousa/followers","following_url":"https://api.github.com/users/rodesousa/following{/other_user}","gists_url":"https://api.github.com/users/rodesousa/gists{/gist_id}","starred_url":"https://api.github.com/users/rodesousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodesousa/subscriptions","organizations_url":"https://api.github.com/users/rodesousa/orgs","repos_url":"https://api.github.com/users/rodesousa/repos","events_url":"https://api.github.com/users/rodesousa/events{/privacy}","received_events_url":"https://api.github.com/users/rodesousa/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T08:17:41Z","updated_at":"2016-04-28T08:17:41Z","body":"Du coup ds le code j'ai mis des balises\r\n```\r\n//\r\n// list.List\r\n//\r\n```\r\npour cibler ce qu'il faut enlever.Il faut aussi renvoyer un []interface qui doit contenir l'ensemble des shards (qui peuvent etre user, ping etc...)\r\n\r\nCommit, je fais une review et on merge"}}