internal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToRisorOptions

func ConvertToRisorOptions(ctxKey string, inputData map[string]any) []risorLib.Option

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.

Jump to

Keyboard shortcuts

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