We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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? Sign in to your account
The current Source function accepts []byte array and returns another []byte array.
Source
[]byte
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.
io.Reader
io.Writer
func SourceStream(w io.Writer, r io.Reader) error
What do you think ?
Thanks !
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
The current
Source
function accepts[]byte
array and returns another[]byte
array.It would be nice to be able to rely on
io.Reader
andio.Writer
interfaces to format sources.What do you think ?
Thanks !
The text was updated successfully, but these errors were encountered: