package
2.1.0+incompatible
Repository: https://github.com/x1unix/go-playground.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
No description provided by the author
Errorf returns new formatted error.
NewAPIv1Handler is APIv1Handler constructor.
No description provided by the author
No description provided by the author
No description provided by the author
NewErrorResponse is ErrorResponse constructor.
NewFileServerWithStatus returns http.Handler which serves specified file with desired HTTP status.
NewHTTPError constructs a new error.
NewSpaFileServer returns SPA handler.
NewTemplateFileServer returns handler which compiles and serves HTML page template.
No description provided by the author
ServeFileWithStatus serves file in HTTP response with specified HTTP status.
WrapHandler wraps handler.
WriteJSON encodes object as JSON and writes it to stdout.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
ErrSnippetTooLarge is snippet max size limit error.
# Structs
APIv1Handler is API v1 handler.
No description provided by the author
No description provided by the author
BackendVersionService provides information about used Go versions for all backends.
BuildResponseV1 is build response for legacy API.
BuildResponseV2 is WASM build response for v2 api.
ErrorResponse is error response.
No description provided by the author
HTTPError is HTTP response error.
PlaygroundVersions contains information about playground Go versions.
RunParams is code run request parameters.
RunResponse is code run response.
No description provided by the author
ShareResponse is snippet share response.
SnippetResponse is snippet response.
SpaFileServer is a wrapper around http.FileServer for serving SPA contents.
SuggestionRequest is code completion suggestion request.
SuggestionsResponse is code completion response.
No description provided by the author
No description provided by the author
VersionResponse is version response.
VersionsInformation contains Go version for different run targets.
# Interfaces
No description provided by the author