{"action":"created","issue":{"url":"https://api.github.com/repos/fatih/vim-go/issues/1760","repository_url":"https://api.github.com/repos/fatih/vim-go","labels_url":"https://api.github.com/repos/fatih/vim-go/issues/1760/labels{/name}","comments_url":"https://api.github.com/repos/fatih/vim-go/issues/1760/comments","events_url":"https://api.github.com/repos/fatih/vim-go/issues/1760/events","html_url":"https://github.com/fatih/vim-go/issues/1760","id":311684299,"number":1760,"title":"[Suggestion] format error snippet","user":{"login":"ldelossa","id":5642902,"avatar_url":"https://avatars0.githubusercontent.com/u/5642902?v=4","gravatar_id":"","url":"https://api.github.com/users/ldelossa","html_url":"https://github.com/ldelossa","followers_url":"https://api.github.com/users/ldelossa/followers","following_url":"https://api.github.com/users/ldelossa/following{/other_user}","gists_url":"https://api.github.com/users/ldelossa/gists{/gist_id}","starred_url":"https://api.github.com/users/ldelossa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldelossa/subscriptions","organizations_url":"https://api.github.com/users/ldelossa/orgs","repos_url":"https://api.github.com/users/ldelossa/repos","events_url":"https://api.github.com/users/ldelossa/events{/privacy}","received_events_url":"https://api.github.com/users/ldelossa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-05T16:35:24Z","updated_at":"2018-04-05T17:04:15Z","closed_at":"2018-04-05T17:04:08Z","author_association":"CONTRIBUTOR","body":"Looking at the provided snippets, I would find this to be useful instead of the current `errn,` \r\n\r\n```\r\n❯ git diff origin/master\r\ndiff --git a/gosnippets/UltiSnips/go.snippets b/gosnippets/UltiSnips/go.snippets\r\nindex 9a9f546..87a7b37 100644\r\n--- a/gosnippets/UltiSnips/go.snippets\r\n+++ b/gosnippets/UltiSnips/go.snippets\r\n@@ -169,7 +169,7 @@ endsnippet\r\n # error multiple return\r\n snippet errn, \"Error return with two return values\" !b\r\n if err != nil {\r\n-       return ${1:nil}, err\r\n+       return ${1:nil}, ${2:err}\r\n }\r\n ${0}\r\n endsnippet\r\n```\r\n\r\nPushing branches are not allowed so could not open a PR. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fatih/vim-go/issues/comments/379006595","html_url":"https://github.com/fatih/vim-go/issues/1760#issuecomment-379006595","issue_url":"https://api.github.com/repos/fatih/vim-go/issues/1760","id":379006595,"user":{"login":"Carpetsmoker","id":1032692,"avatar_url":"https://avatars1.githubusercontent.com/u/1032692?v=4","gravatar_id":"","url":"https://api.github.com/users/Carpetsmoker","html_url":"https://github.com/Carpetsmoker","followers_url":"https://api.github.com/users/Carpetsmoker/followers","following_url":"https://api.github.com/users/Carpetsmoker/following{/other_user}","gists_url":"https://api.github.com/users/Carpetsmoker/gists{/gist_id}","starred_url":"https://api.github.com/users/Carpetsmoker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carpetsmoker/subscriptions","organizations_url":"https://api.github.com/users/Carpetsmoker/orgs","repos_url":"https://api.github.com/users/Carpetsmoker/repos","events_url":"https://api.github.com/users/Carpetsmoker/events{/privacy}","received_events_url":"https://api.github.com/users/Carpetsmoker/received_events","type":"User","site_admin":false},"created_at":"2018-04-05T17:04:15Z","updated_at":"2018-04-05T17:04:15Z","author_association":"COLLABORATOR","body":"Fixed in  #1761"}}
{"actor":{"display_login":"Carpetsmoker"}}