package playground
import "golang.org/x/tools/playground"
Package playground registers an HTTP handler at "/compile" that proxies requests to the golang.org playground service. This package may be used unaltered on App Engine Standard with Go 1.11+ runtime.
Index ¶
Functions ¶
func Proxy ¶
Proxy returns a handler that can be registered on /compile to proxy requests to the Go playground.
This package already contains a func init that does:
func init() { http.Handle("/compile", Proxy()) }
Proxy may be useful for servers that use HTTP muxes other than the default mux.
Source Files ¶
playground.go
Directories ¶
Path | Synopsis |
---|---|
playground/socket | Package socket implements a WebSocket-based playground backend. |
- Version
- v0.30.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 5 hours ago –
Tools for package owners.