Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/go/ast/astutil: Apply: extraneous comma after replaced parameter #23771
Not sure if this is a bug in
yields this output:
Note the comma at the end of the function param list.
Reparsing the result with a new FileSet and then re-formatting fixes the problem.
I've just run into this on go 1.12.1 on MacOS.
The workaround in the issue worked for me though.