Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToRisorOptions ¶
ConvertToRisorOptions converts a Go map into Risor VM options object. The input data will be wrapped in a single "ctx" object passed to the VM.
For example, if the inputData is {"foo": "bar", "baz": 123}, the output will be:
[]risorLib.Option{ risorLib.WithGlobal("ctx", map[string]any{ "foo": "bar", "baz": 123, }), }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.