{"comment":{"url":"https://api.github.com/repos/GroWIng11/TodoList/comments/29966662","html_url":"https://github.com/GroWIng11/TodoList/commit/a11900f89a18bc68486e35b22a8fdc019878bcb0#commitcomment-29966662","id":29966662,"node_id":"MDEzOkNvbW1pdENvbW1lbnQyOTk2NjY2Mg==","user":{"login":"GhostComputing","id":1625098,"node_id":"MDQ6VXNlcjE2MjUwOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1625098?v=4","gravatar_id":"","url":"https://api.github.com/users/GhostComputing","html_url":"https://github.com/GhostComputing","followers_url":"https://api.github.com/users/GhostComputing/followers","following_url":"https://api.github.com/users/GhostComputing/following{/other_user}","gists_url":"https://api.github.com/users/GhostComputing/gists{/gist_id}","starred_url":"https://api.github.com/users/GhostComputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GhostComputing/subscriptions","organizations_url":"https://api.github.com/users/GhostComputing/orgs","repos_url":"https://api.github.com/users/GhostComputing/repos","events_url":"https://api.github.com/users/GhostComputing/events{/privacy}","received_events_url":"https://api.github.com/users/GhostComputing/received_events","type":"User","site_admin":false},"position":110,"line":110,"path":"main.go","commit_id":"a11900f89a18bc68486e35b22a8fdc019878bcb0","created_at":"2018-08-06T04:43:33Z","updated_at":"2018-08-06T04:43:33Z","author_association":"NONE","body":"err1，err2，err3 这种没有意义的命名可以改掉，可以统一用一个变量 err 表示。\r\n\r\n我感觉 `checkErr` 这个函数没啥特别的价值，可以直接用 Go 风格的 error handle：\r\n\r\n```\r\nbar, err := foo()\r\nif err != nil {\r\n    do_err_handle(err)\r\n}\r\nprocess(bar)\r\n```\r\n\r\n其中 error handle 这块是否有必要抽象成一个函数，看具体的需求。在这个场景下，看起来没啥必要。"}}
{"actor":{"display_login":"GhostComputing"}}