{"action":"closed","issue":{"url":"https://api.github.com/repos/qiniu/qlang/issues/64","repository_url":"https://api.github.com/repos/qiniu/qlang","labels_url":"https://api.github.com/repos/qiniu/qlang/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/qiniu/qlang/issues/64/comments","events_url":"https://api.github.com/repos/qiniu/qlang/issues/64/events","html_url":"https://github.com/qiniu/qlang/issues/64","id":155371988,"number":64,"title":"qlang shell doesn't support import?","user":{"login":"xushiwei","id":396972,"avatar_url":"https://avatars.githubusercontent.com/u/396972?v=3","gravatar_id":"","url":"https://api.github.com/users/xushiwei","html_url":"https://github.com/xushiwei","followers_url":"https://api.github.com/users/xushiwei/followers","following_url":"https://api.github.com/users/xushiwei/following{/other_user}","gists_url":"https://api.github.com/users/xushiwei/gists{/gist_id}","starred_url":"https://api.github.com/users/xushiwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xushiwei/subscriptions","organizations_url":"https://api.github.com/users/xushiwei/orgs","repos_url":"https://api.github.com/users/xushiwei/repos","events_url":"https://api.github.com/users/xushiwei/events{/privacy}","received_events_url":"https://api.github.com/users/xushiwei/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/qiniu/qlang/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/qiniu/qlang/milestones/1","html_url":"https://github.com/qiniu/qlang/milestones/qlang.v2","labels_url":"https://api.github.com/repos/qiniu/qlang/milestones/1/labels","id":1663976,"number":1,"title":"qlang.v2","description":null,"creator":{"login":"xushiwei","id":396972,"avatar_url":"https://avatars.githubusercontent.com/u/396972?v=3","gravatar_id":"","url":"https://api.github.com/users/xushiwei","html_url":"https://github.com/xushiwei","followers_url":"https://api.github.com/users/xushiwei/followers","following_url":"https://api.github.com/users/xushiwei/following{/other_user}","gists_url":"https://api.github.com/users/xushiwei/gists{/gist_id}","starred_url":"https://api.github.com/users/xushiwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xushiwei/subscriptions","organizations_url":"https://api.github.com/users/xushiwei/orgs","repos_url":"https://api.github.com/users/xushiwei/repos","events_url":"https://api.github.com/users/xushiwei/events{/privacy}","received_events_url":"https://api.github.com/users/xushiwei/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":21,"state":"open","created_at":"2016-03-24T14:16:20Z","updated_at":"2016-05-21T10:16:56Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-05-17T21:56:56Z","updated_at":"2016-05-21T10:16:56Z","closed_at":"2016-05-21T10:16:56Z","body":"例如，有 https://github.com/qlangio/libs/tree/master/tricks 这个模块。\r\n输入 qlang 进入 qlang shell，然后输入\r\n\r\n```\r\nimport \"tricks\"\r\n```\r\n\r\n报错：\r\n\r\n```\r\nline 14: match failed: `fn inherit(Base) {\r\n\t\ttbl = reflect.valueOf(Base).elem().fieldByName(\"Fns\").interface()\r\n\t\tfor name, method = range tbl {\r\n\t\t\tif this.tbl[name] == undefined {\r\n\t\t\t\tthis.tbl[name] = method\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n` doesn't match `\"fn\" IDENT fnbody ?';'`\r\nline 14: match failed: `for name, method = range tbl {\r\n\t\t\tif this.tbl[name] == undefined {\r\n\t\t\t\tthis.tbl[name] = method\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\nof = fn(Class) {\r\n` doesn't match `'}'`\r\n```"}}
{"actor":{"display_login":"xushiwei"}}