{"action":"created","comment":{"url":"https://api.github.com/repos/mattn/anko/pulls/comments/188150720","pull_request_review_id":120070187,"id":188150720,"diff_hunk":"@@ -69,6 +77,43 @@ println(c)\n \t// [[1 2] 3 4]\n \t// [[1 2] [3 4]]\n \t// [[1 2] [3 4]]\n+\t//\n+\t// 2\n+\t// 2\n+}\n+\n+func Example_vmMaps() {\n+\tenv := vm.NewEnv()\n+\n+\terr := env.Define(\"println\", fmt.Println)\n+\tif err != nil {\n+\t\tlog.Fatalf(\"Define error: %v\\n\", err)\n+\t}\n+\n+\tscript := `\n+a = {}\n+println(a)\n+\n+a.b = 1\n+println(a)\n+\n+a = {}\n+a[\"b\"] = 1\n+println(a)","path":"vm/example_containers_test.go","position":41,"original_position":41,"commit_id":"5cfa49efb9b12e7282a45a6e8ecac85ce6b89a1b","original_commit_id":"5cfa49efb9b12e7282a45a6e8ecac85ce6b89a1b","user":{"login":"Chyroc","id":15604894,"avatar_url":"https://avatars3.githubusercontent.com/u/15604894?v=4","gravatar_id":"","url":"https://api.github.com/users/Chyroc","html_url":"https://github.com/Chyroc","followers_url":"https://api.github.com/users/Chyroc/followers","following_url":"https://api.github.com/users/Chyroc/following{/other_user}","gists_url":"https://api.github.com/users/Chyroc/gists{/gist_id}","starred_url":"https://api.github.com/users/Chyroc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chyroc/subscriptions","organizations_url":"https://api.github.com/users/Chyroc/orgs","repos_url":"https://api.github.com/users/Chyroc/repos","events_url":"https://api.github.com/users/Chyroc/events{/privacy}","received_events_url":"https://api.github.com/users/Chyroc/received_events","type":"User","site_admin":false},"body":"add `println(a.b)`?","created_at":"2018-05-15T02:35:30Z","updated_at":"2018-05-15T02:35:30Z","html_url":"https://github.com/mattn/anko/pull/229#discussion_r188150720","pull_request_url":"https://api.github.com/repos/mattn/anko/pulls/229","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mattn/anko/pulls/comments/188150720"},"html":{"href":"https://github.com/mattn/anko/pull/229#discussion_r188150720"},"pull_request":{"href":"https://api.github.com/repos/mattn/anko/pulls/229"}}},"pull_request":{"url":"https://api.github.com/repos/mattn/anko/pulls/229","id":187949022,"html_url":"https://github.com/mattn/anko/pull/229","diff_url":"https://github.com/mattn/anko/pull/229.diff","patch_url":"https://github.com/mattn/anko/pull/229.patch","issue_url":"https://api.github.com/repos/mattn/anko/issues/229","number":229,"state":"open","locked":false,"title":"Added examples for map and slice","user":{"login":"MichaelS11","id":14301945,"avatar_url":"https://avatars1.githubusercontent.com/u/14301945?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaelS11","html_url":"https://github.com/MichaelS11","followers_url":"https://api.github.com/users/MichaelS11/followers","following_url":"https://api.github.com/users/MichaelS11/following{/other_user}","gists_url":"https://api.github.com/users/MichaelS11/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelS11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelS11/subscriptions","organizations_url":"https://api.github.com/users/MichaelS11/orgs","repos_url":"https://api.github.com/users/MichaelS11/repos","events_url":"https://api.github.com/users/MichaelS11/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelS11/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-14T20:57:50Z","updated_at":"2018-05-15T02:35:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62b215acf8862390363dfc19b92ff02851eeac54","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mattn/anko/pulls/229/commits","review_comments_url":"https://api.github.com/repos/mattn/anko/pulls/229/comments","review_comment_url":"https://api.github.com/repos/mattn/anko/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mattn/anko/issues/229/comments","statuses_url":"https://api.github.com/repos/mattn/anko/statuses/5cfa49efb9b12e7282a45a6e8ecac85ce6b89a1b","head":{"label":"MichaelS11:examples","ref":"examples","sha":"5cfa49efb9b12e7282a45a6e8ecac85ce6b89a1b","user":{"login":"MichaelS11","id":14301945,"avatar_url":"https://avatars1.githubusercontent.com/u/14301945?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaelS11","html_url":"https://github.com/MichaelS11","followers_url":"https://api.github.com/users/MichaelS11/followers","following_url":"https://api.github.com/users/MichaelS11/following{/other_user}","gists_url":"https://api.github.com/users/MichaelS11/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelS11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelS11/subscriptions","organizations_url":"https://api.github.com/users/MichaelS11/orgs","repos_url":"https://api.github.com/users/MichaelS11/repos","events_url":"https://api.github.com/users/MichaelS11/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelS11/received_events","type":"User","site_admin":false},"repo":{"id":126369073,"name":"anko","full_name":"MichaelS11/anko","owner":{"login":"MichaelS11","id":14301945,"avatar_url":"https://avatars1.githubusercontent.com/u/14301945?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaelS11","html_url":"https://github.com/MichaelS11","followers_url":"https://api.github.com/users/MichaelS11/followers","following_url":"https://api.github.com/users/MichaelS11/following{/other_user}","gists_url":"https://api.github.com/users/MichaelS11/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelS11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelS11/subscriptions","organizations_url":"https://api.github.com/users/MichaelS11/orgs","repos_url":"https://api.github.com/users/MichaelS11/repos","events_url":"https://api.github.com/users/MichaelS11/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelS11/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MichaelS11/anko","description":"Scriptable interpreter written in golang","fork":true,"url":"https://api.github.com/repos/MichaelS11/anko","forks_url":"https://api.github.com/repos/MichaelS11/anko/forks","keys_url":"https://api.github.com/repos/MichaelS11/anko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MichaelS11/anko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MichaelS11/anko/teams","hooks_url":"https://api.github.com/repos/MichaelS11/anko/hooks","issue_events_url":"https://api.github.com/repos/MichaelS11/anko/issues/events{/number}","events_url":"https://api.github.com/repos/MichaelS11/anko/events","assignees_url":"https://api.github.com/repos/MichaelS11/anko/assignees{/user}","branches_url":"https://api.github.com/repos/MichaelS11/anko/branches{/branch}","tags_url":"https://api.github.com/repos/MichaelS11/anko/tags","blobs_url":"https://api.github.com/repos/MichaelS11/anko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MichaelS11/anko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MichaelS11/anko/git/refs{/sha}","trees_url":"https://api.github.com/repos/MichaelS11/anko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MichaelS11/anko/statuses/{sha}","languages_url":"https://api.github.com/repos/MichaelS11/anko/languages","stargazers_url":"https://api.github.com/repos/MichaelS11/anko/stargazers","contributors_url":"https://api.github.com/repos/MichaelS11/anko/contributors","subscribers_url":"https://api.github.com/repos/MichaelS11/anko/subscribers","subscription_url":"https://api.github.com/repos/MichaelS11/anko/subscription","commits_url":"https://api.github.com/repos/MichaelS11/anko/commits{/sha}","git_commits_url":"https://api.github.com/repos/MichaelS11/anko/git/commits{/sha}","comments_url":"https://api.github.com/repos/MichaelS11/anko/comments{/number}","issue_comment_url":"https://api.github.com/repos/MichaelS11/anko/issues/comments{/number}","contents_url":"https://api.github.com/repos/MichaelS11/anko/contents/{+path}","compare_url":"https://api.github.com/repos/MichaelS11/anko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MichaelS11/anko/merges","archive_url":"https://api.github.com/repos/MichaelS11/anko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MichaelS11/anko/downloads","issues_url":"https://api.github.com/repos/MichaelS11/anko/issues{/number}","pulls_url":"https://api.github.com/repos/MichaelS11/anko/pulls{/number}","milestones_url":"https://api.github.com/repos/MichaelS11/anko/milestones{/number}","notifications_url":"https://api.github.com/repos/MichaelS11/anko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MichaelS11/anko/labels{/name}","releases_url":"https://api.github.com/repos/MichaelS11/anko/releases{/id}","deployments_url":"https://api.github.com/repos/MichaelS11/anko/deployments","created_at":"2018-03-22T17:06:29Z","updated_at":"2018-05-14T18:51:12Z","pushed_at":"2018-05-14T20:56:53Z","git_url":"git://github.com/MichaelS11/anko.git","ssh_url":"git@github.com:MichaelS11/anko.git","clone_url":"https://github.com/MichaelS11/anko.git","svn_url":"https://github.com/MichaelS11/anko","homepage":"http://play-anko.appspot.com/","size":1575,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mattn:master","ref":"master","sha":"e774c7b8f34814cc8243abc41af5b5aef559be5f","user":{"login":"mattn","id":10111,"avatar_url":"https://avatars0.githubusercontent.com/u/10111?v=4","gravatar_id":"","url":"https://api.github.com/users/mattn","html_url":"https://github.com/mattn","followers_url":"https://api.github.com/users/mattn/followers","following_url":"https://api.github.com/users/mattn/following{/other_user}","gists_url":"https://api.github.com/users/mattn/gists{/gist_id}","starred_url":"https://api.github.com/users/mattn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattn/subscriptions","organizations_url":"https://api.github.com/users/mattn/orgs","repos_url":"https://api.github.com/users/mattn/repos","events_url":"https://api.github.com/users/mattn/events{/privacy}","received_events_url":"https://api.github.com/users/mattn/received_events","type":"User","site_admin":false},"repo":{"id":18204375,"name":"anko","full_name":"mattn/anko","owner":{"login":"mattn","id":10111,"avatar_url":"https://avatars0.githubusercontent.com/u/10111?v=4","gravatar_id":"","url":"https://api.github.com/users/mattn","html_url":"https://github.com/mattn","followers_url":"https://api.github.com/users/mattn/followers","following_url":"https://api.github.com/users/mattn/following{/other_user}","gists_url":"https://api.github.com/users/mattn/gists{/gist_id}","starred_url":"https://api.github.com/users/mattn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattn/subscriptions","organizations_url":"https://api.github.com/users/mattn/orgs","repos_url":"https://api.github.com/users/mattn/repos","events_url":"https://api.github.com/users/mattn/events{/privacy}","received_events_url":"https://api.github.com/users/mattn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mattn/anko","description":"Scriptable interpreter written in golang","fork":false,"url":"https://api.github.com/repos/mattn/anko","forks_url":"https://api.github.com/repos/mattn/anko/forks","keys_url":"https://api.github.com/repos/mattn/anko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattn/anko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattn/anko/teams","hooks_url":"https://api.github.com/repos/mattn/anko/hooks","issue_events_url":"https://api.github.com/repos/mattn/anko/issues/events{/number}","events_url":"https://api.github.com/repos/mattn/anko/events","assignees_url":"https://api.github.com/repos/mattn/anko/assignees{/user}","branches_url":"https://api.github.com/repos/mattn/anko/branches{/branch}","tags_url":"https://api.github.com/repos/mattn/anko/tags","blobs_url":"https://api.github.com/repos/mattn/anko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattn/anko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattn/anko/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattn/anko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattn/anko/statuses/{sha}","languages_url":"https://api.github.com/repos/mattn/anko/languages","stargazers_url":"https://api.github.com/repos/mattn/anko/stargazers","contributors_url":"https://api.github.com/repos/mattn/anko/contributors","subscribers_url":"https://api.github.com/repos/mattn/anko/subscribers","subscription_url":"https://api.github.com/repos/mattn/anko/subscription","commits_url":"https://api.github.com/repos/mattn/anko/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattn/anko/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattn/anko/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattn/anko/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattn/anko/contents/{+path}","compare_url":"https://api.github.com/repos/mattn/anko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattn/anko/merges","archive_url":"https://api.github.com/repos/mattn/anko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattn/anko/downloads","issues_url":"https://api.github.com/repos/mattn/anko/issues{/number}","pulls_url":"https://api.github.com/repos/mattn/anko/pulls{/number}","milestones_url":"https://api.github.com/repos/mattn/anko/milestones{/number}","notifications_url":"https://api.github.com/repos/mattn/anko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattn/anko/labels{/name}","releases_url":"https://api.github.com/repos/mattn/anko/releases{/id}","deployments_url":"https://api.github.com/repos/mattn/anko/deployments","created_at":"2014-03-28T07:29:40Z","updated_at":"2018-05-15T01:02:54Z","pushed_at":"2018-05-15T01:02:50Z","git_url":"git://github.com/mattn/anko.git","ssh_url":"git@github.com:mattn/anko.git","clone_url":"https://github.com/mattn/anko.git","svn_url":"https://github.com/mattn/anko","homepage":"http://play-anko.appspot.com/","size":1603,"stargazers_count":663,"watchers_count":663,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":54,"open_issues":21,"watchers":663,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mattn/anko/pulls/229"},"html":{"href":"https://github.com/mattn/anko/pull/229"},"issue":{"href":"https://api.github.com/repos/mattn/anko/issues/229"},"comments":{"href":"https://api.github.com/repos/mattn/anko/issues/229/comments"},"review_comments":{"href":"https://api.github.com/repos/mattn/anko/pulls/229/comments"},"review_comment":{"href":"https://api.github.com/repos/mattn/anko/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mattn/anko/pulls/229/commits"},"statuses":{"href":"https://api.github.com/repos/mattn/anko/statuses/5cfa49efb9b12e7282a45a6e8ecac85ce6b89a1b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Chyroc"}}