package
Version:
v0.0.0-...-5778cac
Opens a new window with list of versions in this module.
Published: Nov 30, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
package snippets defines a serverless function that proxies
requests/responses to/from the Go playground, for the CUE playground.
The "interface" of such a package is that it declares a Function type that
implements net/http.Handler.
type Function struct {
DevelopmentMode bool
}
Function is a type which implements net/http.Handler, a handler which
implements the serverless function for the CUE playground snippet handling.
ServeHTTP is the implementation of the snippets serverless function.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.