{"action":"opened","issue":{"url":"https://api.github.com/repos/fatih/vim-go/issues/281","labels_url":"https://api.github.com/repos/fatih/vim-go/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/fatih/vim-go/issues/281/comments","events_url":"https://api.github.com/repos/fatih/vim-go/issues/281/events","html_url":"https://github.com/fatih/vim-go/issues/281","id":53410167,"number":281,"title":"GoDoc can not found correct package path when package name has extension","user":{"login":"blu3gui7ar","id":2851963,"avatar_url":"https://avatars.githubusercontent.com/u/2851963?v=3","gravatar_id":"","url":"https://api.github.com/users/blu3gui7ar","html_url":"https://github.com/blu3gui7ar","followers_url":"https://api.github.com/users/blu3gui7ar/followers","following_url":"https://api.github.com/users/blu3gui7ar/following{/other_user}","gists_url":"https://api.github.com/users/blu3gui7ar/gists{/gist_id}","starred_url":"https://api.github.com/users/blu3gui7ar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blu3gui7ar/subscriptions","organizations_url":"https://api.github.com/users/blu3gui7ar/orgs","repos_url":"https://api.github.com/users/blu3gui7ar/repos","events_url":"https://api.github.com/users/blu3gui7ar/events{/privacy}","received_events_url":"https://api.github.com/users/blu3gui7ar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-05T15:56:41Z","updated_at":"2015-01-05T15:56:41Z","closed_at":null,"body":"An example is \r\n\r\nimport \"gopkg.in/yaml.v2\"\r\n\r\nA quick fix might be \r\n\r\ndiff --git a/autoload/go/tool.vim b/autoload/go/tool.vim\r\nindex b7e040b..6195305 100644\r\n--- a/autoload/go/tool.vim\r\n+++ b/autoload/go/tool.vim\r\n@@ -32,7 +32,7 @@ function! go#tool#Imports()\r\n     endif\r\n\r\n     for package_path in split(out, '\\n')\r\n-        let package_name = fnamemodify(package_path, \":t\")\r\n+        let package_name = fnamemodify(package_path, \":t:r\")\r\n         let imports[package_name] = package_path\r\n     endfor\r\n"}}