Documentation ¶
Index ¶
- func AddJavascriptModuleProvider(modName string, provider JavascriptModuleProviderF)
- func GetFunctionRegistry() *progpAPI.FunctionRegistry
- func ReadEmbeddedFile(fs embed.FS, innerPath string) string
- func StartupEngine(scriptPath string, launchDebugger bool)
- type JavascriptModuleProviderF
- type JsResourceLoader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddJavascriptModuleProvider ¶
func AddJavascriptModuleProvider(modName string, provider JavascriptModuleProviderF)
func GetFunctionRegistry ¶
func GetFunctionRegistry() *progpAPI.FunctionRegistry
func StartupEngine ¶
Types ¶
type JavascriptModuleProviderF ¶
type JavascriptModuleProviderF func(resourcePath string) (content string, loader JsResourceLoader)
func ReturnEmbeddedTypescriptModule ¶
func ReturnEmbeddedTypescriptModule(fs embed.FS, innerPath string) JavascriptModuleProviderF
type JsResourceLoader ¶
type JsResourceLoader uint16
const ( JsLoaderNone JsResourceLoader = iota JsLoaderBase64 JsLoaderBinary JsLoaderCopy JsLoaderCSS JsLoaderDataURL JsLoaderDefault JsLoaderEmpty JsLoaderFile JsLoaderGlobalCSS JsLoaderJS JsLoaderJSON JsLoaderJSX JsLoaderLocalCSS JsLoaderText JsLoaderTS JsLoaderTSX )
This value must mimic esbuild "api.Loader" values.
Click to show internal directories.
Click to hide internal directories.