Closed
Description
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.
What version of Go are you using (go version
)?
1.9/tip
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env
)?
N/A
What did you do?
Wanted to fix the imports at the ast.File level using the x/tools/imports lib.
What did you expect to see?
fixImports should be FixImports so it is public and can be used when working with ast's vs. files.
What did you see instead?
It is not public and I am forced to fork the project to use it.