Go - Playground

Card Puncher Data Processing

API

Include the URL of your site in the User-Agent header of your HTTP requests

Share

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.

Run

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
  • Response: Json
{   
   "Errors":"",
   "Events":[
       {
           "Message":"Hello, playground\n",
           "Kind":"stdout",
           "Delay":0
        }
     ]
} 

Documentation / Reference





Discover More
Card Puncher Data Processing
Go

has: garbage collection, a package system, first-class functions, lexical scope, a system call interface, and immutable strings in which text is generally encoded in UTF-8. But it has...



Share this page:
Follow us:
Task Runner