Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
The current Source function accepts byte array and returns another byte array.
func Source(src byte) (byte, error)
It would be nice to be able to rely on io.Reader and io.Writer interfaces to format sources.
func SourceStream(w io.Writer, r io.Reader) error
What do you think ?
The text was updated successfully, but these errors were encountered:
You can already accomplish this via https://pkg.go.dev/go/parser#ParseFile and https://pkg.go.dev/go/format#Node, for example. I agree that the current APIs aren't perfect, but I'm not sure that more overlapping APIs will help.
Sorry, something went wrong.
Thanks ! A little more complex than expected but it does the job ;)
No branches or pull requests