libProgpScripts

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

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 ReadEmbeddedFile

func ReadEmbeddedFile(fs embed.FS, innerPath string) string

func StartupEngine

func StartupEngine(scriptPath string, launchDebugger bool)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL