Skip to content
New issue

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

x/playground: support non-source input files #38294

Open
bcmills opened this issue Apr 7, 2020 · 1 comment
Open

x/playground: support non-source input files #38294

bcmills opened this issue Apr 7, 2020 · 1 comment

Comments

@bcmills
Copy link
Member

@bcmills bcmills commented Apr 7, 2020

(This is somewhat related to #32403.)

Now that the Playground supports multi-file inputs, it would be nice if those files could include non-source files, which the program could then open using the usual os functions and use as inputs to various I/O libraries (for example, encoding/csv as in https://play.golang.org/p/PST2BvzIBPE).

That would make it easier, for example, for users to use the txtar command to convert a local reproducer for a bug to be runnable in the Playground with minimal additional modification.

(CC @golang/osp-team)

@bcmills
Copy link
Member Author

@bcmills bcmills commented May 6, 2021

This would also be useful for Playground examples that use //go:embed, now that that exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants