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 · 3 comments
Open

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

bcmills opened this issue Apr 7, 2020 · 3 comments
Labels
FeatureRequest Issues asking for a new feature that does not need a proposal. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@bcmills
Copy link
Contributor

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 bcmills added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. FeatureRequest Issues asking for a new feature that does not need a proposal. labels Apr 7, 2020
@gopherbot gopherbot added this to the Unreleased milestone Apr 7, 2020
@bcmills
Copy link
Contributor Author

bcmills commented May 6, 2021

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

@AlexanderYastrebov
Copy link
Contributor

This may also improve runnable examples that depend on testdata files, e.g. #32916

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest Issues asking for a new feature that does not need a proposal. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants
@AlexanderYastrebov @bcmills @gopherbot and others