MCPcopy Create free account
hub / github.com/astercloud/aster / wrapCode

Method wrapCode

pkg/tools/bridge/runtime.go:455–463  ·  view source on GitHub ↗
(code string, input map[string]any)

Source from the content-addressed store, hash-verified

453}
454
455func (r *NodeJSRuntime) wrapCode(code string, input map[string]any) string {
456 inputJSON, _ := json.Marshal(input)
457 return fmt.Sprintf(`// Input data
458const _input = %s;
459
460// User code
461%s
462`, string(inputJSON), code)
463}
464
465// BashRuntime Bash 运行时
466type BashRuntime struct {

Callers 1

ExecuteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected