{"push_id":571816529,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"4f678aea62b5dc981689e56d4b51d5e7d25a885a","before":"bf94a57eb2cbce2bc244b54197dcf12750936dcc","commits":[{"sha":"4f678aea62b5dc981689e56d4b51d5e7d25a885a","author":{"email":"fffd32bdefdb4ffb994d2b93e8eb10d54edbf294@users.noreply.github.com","name":"Pawel Palucki"},"message":"GoImport can import \"encoding/json\" when executed on \"json\"\n\nActually GoImport can work only for narow number of packages.\r\nThe package have to be flat and the import path have to reflect exactly package name.\r\n\r\nThis fix tries to infer \"real\" import path when executed on package name for example:\r\n\r\n```go\r\npackage main\r\nfunc main(){\r\n    json\r\n}\r\n``` \r\n\r\nActually when GoImport execute on \"json\" it cannot import \"encoding/json\", This merge fixes that by creating mapping between \"package name\" and \"import path\" and injecting \"real import path\" when needed.\r\n\r\nAs a bonus this fix can import not just builtin packages but also external packages if they were installed earlier.\r\n\r\nTry this:\r\n\r\n```sh\r\ngo get \"github.com/bitly/go-simplejson\"\r\n```\r\n\r\nand then:\r\n:GoImport simplejson\r\n\r\nthe effect is:\r\n```go\r\npackage main\r\n\r\nimport (\r\n    \"github.com/bitly/go-simplejson\"\r\n)\r\n```\r\n\r\nWarning - it takes time ,especially on big projects.","distinct":true,"url":"https://api.github.com/repos/ppalucki/vim-go/commits/4f678aea62b5dc981689e56d4b51d5e7d25a885a"}]}