Skip to content

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

Open
@dmitshur

Description

@dmitshur

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions