Support some playground features by using play.golang.org
- Dominant language
- CSS
- Stars
- 44
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
There might be a a way to run Go code examples from a statically hosted 'represent' slide in the main public Go playground. Create a URL with a POST, then display in an iframe?
` ohh at least godoc.org just redirects you to play.golang.org
cmars: sounds likely
http://godoc.org/encoding/json#example-Decoder <- click play
Tv`: interesting... i wonder how that play link was created? automatically by godoc i assume
http://golang.org/pkg/encoding/json/#example_Decoder POSTs to http://golang.org/compile
curl http://golang.org/compile --data-urlencode body='package main'
{"compile_errors":"runtime.main: undefined: main.main\n [process exited with non-zero status]\n","output":""}
ah :)
-d version=2 also if you want to emulate it more
maybe the redirect was just to avoid rewriting the form editing ui
I recommend looking at talks.godoc.org. It runs code in place.`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.