{"action":"created","issue":{"url":"https://api.github.com/repos/unknwon/the-way-to-go_ZH_CN/issues/716","repository_url":"https://api.github.com/repos/unknwon/the-way-to-go_ZH_CN","labels_url":"https://api.github.com/repos/unknwon/the-way-to-go_ZH_CN/issues/716/labels{/name}","comments_url":"https://api.github.com/repos/unknwon/the-way-to-go_ZH_CN/issues/716/comments","events_url":"https://api.github.com/repos/unknwon/the-way-to-go_ZH_CN/issues/716/events","html_url":"https://github.com/unknwon/the-way-to-go_ZH_CN/issues/716","id":488025817,"node_id":"MDU6SXNzdWU0ODgwMjU4MTc=","number":716,"title":"12.3最后一行提示说法错误","user":{"login":"kilua626","id":3786473,"node_id":"MDQ6VXNlcjM3ODY0NzM=","avatar_url":"https://avatars3.githubusercontent.com/u/3786473?v=4","gravatar_id":"","url":"https://api.github.com/users/kilua626","html_url":"https://github.com/kilua626","followers_url":"https://api.github.com/users/kilua626/followers","following_url":"https://api.github.com/users/kilua626/following{/other_user}","gists_url":"https://api.github.com/users/kilua626/gists{/gist_id}","starred_url":"https://api.github.com/users/kilua626/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kilua626/subscriptions","organizations_url":"https://api.github.com/users/kilua626/orgs","repos_url":"https://api.github.com/users/kilua626/repos","events_url":"https://api.github.com/users/kilua626/events{/privacy}","received_events_url":"https://api.github.com/users/kilua626/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-09-02T06:46:35Z","updated_at":"2019-09-04T22:45:27Z","closed_at":null,"author_association":"NONE","body":"原文:\r\n注意 defer 的使用：当打开目标文件时发生了错误，那么 defer 仍然能够确保 src.Close() 执行。如果不这么做，文件会一直保持打开状态并占用资源。\r\n\r\n示例代码中，如果打开目标文件发生错误，就return，并不会调度其后的defer代码，所以这种情况下是不会保证关闭文件的。\r\n其实如果打开目标文件发生错误，那么返回的文件句柄是空，没有关闭的必要。"},"comment":{"url":"https://api.github.com/repos/unknwon/the-way-to-go_ZH_CN/issues/comments/528121283","html_url":"https://github.com/unknwon/the-way-to-go_ZH_CN/issues/716#issuecomment-528121283","issue_url":"https://api.github.com/repos/unknwon/the-way-to-go_ZH_CN/issues/716","id":528121283,"node_id":"MDEyOklzc3VlQ29tbWVudDUyODEyMTI4Mw==","user":{"login":"unknwon","id":2946214,"node_id":"MDQ6VXNlcjI5NDYyMTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2946214?v=4","gravatar_id":"","url":"https://api.github.com/users/unknwon","html_url":"https://github.com/unknwon","followers_url":"https://api.github.com/users/unknwon/followers","following_url":"https://api.github.com/users/unknwon/following{/other_user}","gists_url":"https://api.github.com/users/unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unknwon/subscriptions","organizations_url":"https://api.github.com/users/unknwon/orgs","repos_url":"https://api.github.com/users/unknwon/repos","events_url":"https://api.github.com/users/unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/unknwon/received_events","type":"User","site_admin":false},"created_at":"2019-09-04T22:45:27Z","updated_at":"2019-09-04T22:45:27Z","author_association":"OWNER","body":"说的有道理啊。。建议提个 PR 修改一下"}}
{"actor":{"display_login":"unknwon"}}