{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/23782","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/23782/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/23782/comments","events_url":"https://api.github.com/repos/golang/go/issues/23782/events","html_url":"https://github.com/golang/go/issues/23782","id":296227748,"number":23782,"title":"x/tools/imports: consider exporting fixImports","user":{"login":"eikenb","id":722663,"avatar_url":"https://avatars2.githubusercontent.com/u/722663?v=4","gravatar_id":"","url":"https://api.github.com/users/eikenb","html_url":"https://github.com/eikenb","followers_url":"https://api.github.com/users/eikenb/followers","following_url":"https://api.github.com/users/eikenb/following{/other_user}","gists_url":"https://api.github.com/users/eikenb/gists{/gist_id}","starred_url":"https://api.github.com/users/eikenb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eikenb/subscriptions","organizations_url":"https://api.github.com/users/eikenb/orgs","repos_url":"https://api.github.com/users/eikenb/repos","events_url":"https://api.github.com/users/eikenb/events{/privacy}","received_events_url":"https://api.github.com/users/eikenb/received_events","type":"User","site_admin":false},"labels":[{"id":373401956,"url":"https://api.github.com/repos/golang/go/labels/NeedsDecision","name":"NeedsDecision","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/22","html_url":"https://github.com/golang/go/milestone/22","labels_url":"https://api.github.com/repos/golang/go/milestones/22/labels","id":1067491,"number":22,"title":"Unreleased","description":"Issues that do not affect released Go code and binaries.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars1.githubusercontent.com/u/104030?v=4","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":816,"closed_issues":1194,"state":"open","created_at":"2015-04-14T18:48:22Z","updated_at":"2018-02-13T21:48:40Z","due_on":"2099-12-31T08:00:00Z","closed_at":null},"comments":3,"created_at":"2018-02-11T21:33:23Z","updated_at":"2018-02-13T21:54:37Z","closed_at":null,"author_association":"NONE","body":"This is a 3 character change that  would make this module much more useful for people working on custom formatting solutions. Without this you need to format the code and then re-parse it to get the ast with the fixed imports which is very inefficient.\r\n\r\n### What version of Go are you using (`go version`)?\r\n1.9/tip\r\n\r\n### Does this issue reproduce with the latest release?\r\nYes.\r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\nN/A\r\n\r\n### What did you do?\r\nWanted to fix the imports at the ast.File level using the x/tools/imports lib.\r\n\r\n### What did you expect to see?\r\nfixImports should be FixImports so it is public and can be used when working with ast's vs. files.\r\n\r\n### What did you see instead?\r\nIt is not public and I am forced to fork the project to use it.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/365417738","html_url":"https://github.com/golang/go/issues/23782#issuecomment-365417738","issue_url":"https://api.github.com/repos/golang/go/issues/23782","id":365417738,"user":{"login":"eikenb","id":722663,"avatar_url":"https://avatars2.githubusercontent.com/u/722663?v=4","gravatar_id":"","url":"https://api.github.com/users/eikenb","html_url":"https://github.com/eikenb","followers_url":"https://api.github.com/users/eikenb/followers","following_url":"https://api.github.com/users/eikenb/following{/other_user}","gists_url":"https://api.github.com/users/eikenb/gists{/gist_id}","starred_url":"https://api.github.com/users/eikenb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eikenb/subscriptions","organizations_url":"https://api.github.com/users/eikenb/orgs","repos_url":"https://api.github.com/users/eikenb/repos","events_url":"https://api.github.com/users/eikenb/events{/privacy}","received_events_url":"https://api.github.com/users/eikenb/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T21:54:37Z","updated_at":"2018-02-13T21:54:37Z","author_association":"NONE","body":"Went ahead and created the Pull Request to facilitate the decision."}}
{"actor":{"display_login":"eikenb"}}