go/parser : parser go src file then printf to file, format error #64927
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
go version go1.21.5 linux/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
main.go
cert.go from https://github.com/LY1806620741/mkcert-autoconfig/blob/111715b04f1ff91ff297b9652fcc31e5ab3ff4f1/cert.go#L37
What did you expect to see?
new file cert_edit.go the same as cert.go
What did you see instead?
go parser rewrite cert.go code but duplicate code inserted. But I didn't operate the ast tree.

The text was updated successfully, but these errors were encountered: