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

Playground: More user friendly scheme for accessing raw snippet. #57

Open
dmitshur opened this issue Sep 17, 2016 · 0 comments
Open

Playground: More user friendly scheme for accessing raw snippet. #57

dmitshur opened this issue Sep 17, 2016 · 0 comments

Comments

@dmitshur
Copy link
Member

@dominikh made a valid observation that the GopherJS playground is currently missing a certain feature of the Go playground. The ability to add a ".go" suffix to the playground URL and get a raw snippet. This is useful to be able to curl the snippet to a remote machine, for example.

Compare, Go playground URLs:

https://play.golang.org/p/v3rrZLwEUC
https://play.golang.org/p/v3rrZLwEUC.go

GopherJS playground URLs:

http://www.gopherjs.org/playground/#/hy-CTQOoiM
http://www.gopherjs.org/playground/#/hy-CTQOoiM.go - does not work
http://snippets.gopherjs.org/p/hy-CTQOoiM - works, but is not user friendly. also doesn't have .go suffix, so requires the filename to be changed when downloading.

Thanks @dominikh for reporting.

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

No branches or pull requests

1 participant