Documentation
¶
Overview ¶
Package playground provides a web-based PSL playground with WASM support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlaygroundRequest ¶
type PlaygroundRequest struct {
PSL string `json:"psl"`
Action string `json:"action"` // "validate", "decode", "encode", "structure"
Hex string `json:"hex,omitempty"`
JSON string `json:"json,omitempty"`
}
PlaygroundRequest is a request to the playground API.
type PlaygroundResponse ¶
type PlaygroundResponse struct {
Success bool `json:"success"`
Result any `json:"result,omitempty"`
Error string `json:"error,omitempty"`
}
PlaygroundResponse is a response from the playground API.
Click to show internal directories.
Click to hide internal directories.