Skip to content

-share: allow to customize output URL #11

@dolmen

Description

@dolmen

For -share, add support for an environment variable that allows to switch the result URL from the default https://go.dev/play/ to something else such as https://goplay.tools/snippet/

Note: we also need to keep room for switch the upload URL for sending to an alternate playground.

Rationale

https://goplay.tools/ is an alternate rendering of snippets posted to https://play.golang.org via https://go.dev: they both share the same storage. But goplay.tools could be prefered by users.
Example:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions