{"action":"created","issue":{"url":"https://api.github.com/repos/PuerkitoBio/pigeon/issues/4","labels_url":"https://api.github.com/repos/PuerkitoBio/pigeon/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/PuerkitoBio/pigeon/issues/4/comments","events_url":"https://api.github.com/repos/PuerkitoBio/pigeon/issues/4/events","html_url":"https://github.com/PuerkitoBio/pigeon/issues/4","id":93590232,"number":4,"title":"Not getting []interface{} for star, plus expressions","user":{"login":"erjoalgo","id":5349288,"avatar_url":"https://avatars.githubusercontent.com/u/5349288?v=3","gravatar_id":"","url":"https://api.github.com/users/erjoalgo","html_url":"https://github.com/erjoalgo","followers_url":"https://api.github.com/users/erjoalgo/followers","following_url":"https://api.github.com/users/erjoalgo/following{/other_user}","gists_url":"https://api.github.com/users/erjoalgo/gists{/gist_id}","starred_url":"https://api.github.com/users/erjoalgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erjoalgo/subscriptions","organizations_url":"https://api.github.com/users/erjoalgo/orgs","repos_url":"https://api.github.com/users/erjoalgo/repos","events_url":"https://api.github.com/users/erjoalgo/events{/privacy}","received_events_url":"https://api.github.com/users/erjoalgo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-07T17:56:53Z","updated_at":"2015-07-07T18:22:25Z","closed_at":"2015-07-07T18:22:25Z","body":"Hi, \r\n\r\n```\r\n{\r\n\tpackage main\r\n\t\r\n}\r\n\r\nA <- (  \"A \" first:B rest1:( \",\" B )* rest2:C+ rest3:[a-z]+ )\r\n{\r\n\tfor i, el := range rest\t{\r\n\t\tfmt.Printf( \"%d: %+v\\n\", i, el )\r\n\t}\r\n\treturn string(c.text), nil\r\n}\r\n\r\nB <- \"B \" val:([a-z]+) {\r\n\treturn string(c.text), nil\r\n}\r\n\r\nC <- \"C \" val:([0-9]+) {\r\n\treturn string(c.text), nil\r\n}\r\n```\r\n\r\n\r\nI get:\r\n\r\n```\r\nfunc (c *current) onA1(first, rest1, rest2, rest3 interface{}) (interface{}, error) {\r\n\tfor i, el := range rest\t{\r\n\t\tfmt.Printf( \"%d: %+v\\n\", el )\r\n\t}\r\n\treturn string(c.text), nil\r\n}\r\n```\r\n\r\nI was expecting rest1, rest2, rest3 to be slices. What am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/PuerkitoBio/pigeon/issues/comments/119291253","html_url":"https://github.com/PuerkitoBio/pigeon/issues/4#issuecomment-119291253","issue_url":"https://api.github.com/repos/PuerkitoBio/pigeon/issues/4","id":119291253,"user":{"login":"erjoalgo","id":5349288,"avatar_url":"https://avatars.githubusercontent.com/u/5349288?v=3","gravatar_id":"","url":"https://api.github.com/users/erjoalgo","html_url":"https://github.com/erjoalgo","followers_url":"https://api.github.com/users/erjoalgo/followers","following_url":"https://api.github.com/users/erjoalgo/following{/other_user}","gists_url":"https://api.github.com/users/erjoalgo/gists{/gist_id}","starred_url":"https://api.github.com/users/erjoalgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erjoalgo/subscriptions","organizations_url":"https://api.github.com/users/erjoalgo/orgs","repos_url":"https://api.github.com/users/erjoalgo/repos","events_url":"https://api.github.com/users/erjoalgo/events{/privacy}","received_events_url":"https://api.github.com/users/erjoalgo/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T18:22:25Z","updated_at":"2015-07-07T18:22:25Z","body":"I see, I needed to convert to []interface{} from interface{}"}}