playground

package
v0.100.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Proxy

func Proxy() http.Handler

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.

Types

This section is empty.

Directories

Path Synopsis
Package socket implements an WebSocket-based playground backend.
Package socket implements an WebSocket-based playground backend.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL