1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| // $PF_GENERATE_ONCE$ package sandbox
import ( "context"
"{{{ .Package }}}/app" "{{{ .Package }}}/app/util" )
var wasm = &Sandbox{Key: "wasm", Title: "WASM", Icon: "gift", Run: onWASM}
func onWASM(_ context.Context, _ *app.State, _ util.Logger) (any, error) { ret := util.ValueMap{"status": "ok"} return ret, nil }
|