Include the URL of your site in the User-Agent header of your HTTP requests
The share API return a hash value of a code.
This hash added to the playground base url https://play.golang.org/p/ can be shared.
To get the output of the a run
version: "2"
body: "The Go Code". Example of Request Body
that leads to the following request Body:
version=2&body=package+main%0A%0Aimport+(%0A%09%22fmt%22%0A)%0A%0Afunc+main()+%7B%0A%09fmt.Println(%22Hello%2C+playground%22)%0A%7D%0A
{
"Errors":"",
"Events":[
{
"Message":"Hello, playground\n",
"Kind":"stdout",
"Delay":0
}
]
}