Documentation
¶
Overview ¶
Package playground exposes an in-memory compiler suitable for browser playgrounds and WASM wrappers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
type Diagnostic struct {
File string `json:"file"`
Code string `json:"code,omitempty"`
Pos Position `json:"pos"`
Range *Range `json:"range,omitempty"`
Severity string `json:"severity"`
Message string `json:"message"`
}
Diagnostic is a source diagnostic safe to serialize to browser clients.
type Project ¶
type Project struct {
Files map[string]string `json:"files"`
Config gowdk.Config `json:"-"`
OutputDir string `json:"outputDir,omitempty"`
}
Project is a browser-compiler input. Files maps project-relative paths to file contents. The current browser compiler accepts .gwdk page, component, and layout files.
Click to show internal directories.
Click to hide internal directories.