play

package
v0.0.0-...-2f93ebb Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(mux *http.ServeMux, godevSite, chinaSite *web.Site)

RegisterHandlers registers handlers for the playground endpoints.

Types

type Event

type Event struct {
	Message string
	Kind    string        // "stdout" or "stderr"
	Delay   time.Duration // time to wait before printing Message
}

type Request

type Request struct {
	Body    string
	WithVet bool
}

type Response

type Response struct {
	Errors    string
	Events    []Event
	VetErrors string
}

Jump to

Keyboard shortcuts

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