{"action":"created","issue":{"url":"https://api.github.com/repos/dancannon/gorethink/issues/261","labels_url":"https://api.github.com/repos/dancannon/gorethink/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/dancannon/gorethink/issues/261/comments","events_url":"https://api.github.com/repos/dancannon/gorethink/issues/261/events","html_url":"https://github.com/dancannon/gorethink/issues/261","id":127033295,"number":261,"title":"How to get all based on array string","user":{"login":"Snorlock","id":1012055,"avatar_url":"https://avatars.githubusercontent.com/u/1012055?v=3","gravatar_id":"","url":"https://api.github.com/users/Snorlock","html_url":"https://github.com/Snorlock","followers_url":"https://api.github.com/users/Snorlock/followers","following_url":"https://api.github.com/users/Snorlock/following{/other_user}","gists_url":"https://api.github.com/users/Snorlock/gists{/gist_id}","starred_url":"https://api.github.com/users/Snorlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Snorlock/subscriptions","organizations_url":"https://api.github.com/users/Snorlock/orgs","repos_url":"https://api.github.com/users/Snorlock/repos","events_url":"https://api.github.com/users/Snorlock/events{/privacy}","received_events_url":"https://api.github.com/users/Snorlock/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dancannon/gorethink/labels/p:low","name":"p:low","color":"fbca04"},{"url":"https://api.github.com/repos/dancannon/gorethink/labels/s:wontfix","name":"s:wontfix","color":"696969"},{"url":"https://api.github.com/repos/dancannon/gorethink/labels/t:enhancement","name":"t:enhancement","color":"4AE371"},{"url":"https://api.github.com/repos/dancannon/gorethink/labels/t:question","name":"t:question","color":"75D6FF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-16T16:00:39Z","updated_at":"2016-01-21T18:17:55Z","closed_at":null,"body":"Hi, i want to use this function:\r\n```\r\nfunc (t Term) GetAll(keys ...interface{}) Term {\r\n```\r\nBut what I have is a []string and not sure how to be able to call GetAll(\"string1\",\"string2\", ....).\r\nThe length of the slice of strings is very different.\r\n\r\nAny suggetions? Im kinda new to go so still learning but not sure how to google my way to this.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dancannon/gorethink/issues/comments/173661808","html_url":"https://github.com/dancannon/gorethink/issues/261#issuecomment-173661808","issue_url":"https://api.github.com/repos/dancannon/gorethink/issues/261","id":173661808,"user":{"login":"dancannon","id":414768,"avatar_url":"https://avatars.githubusercontent.com/u/414768?v=3","gravatar_id":"","url":"https://api.github.com/users/dancannon","html_url":"https://github.com/dancannon","followers_url":"https://api.github.com/users/dancannon/followers","following_url":"https://api.github.com/users/dancannon/following{/other_user}","gists_url":"https://api.github.com/users/dancannon/gists{/gist_id}","starred_url":"https://api.github.com/users/dancannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dancannon/subscriptions","organizations_url":"https://api.github.com/users/dancannon/orgs","repos_url":"https://api.github.com/users/dancannon/repos","events_url":"https://api.github.com/users/dancannon/events{/privacy}","received_events_url":"https://api.github.com/users/dancannon/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T18:17:55Z","updated_at":"2016-01-21T18:17:55Z","body":"Sorry it took me so long to reply, unfortunately I am not sure if there is a good way to solve your problem. The `GetAll` function needs to use `interface{}` as any type can be used as an index. \r\n\r\nI will leave this issue open for a little longer in case somebody else has any ideas for how this can be improved but for now I think creating a new slice is the only way forward,"}}