MCPcopy Index your code
hub / github.com/google/go-jsonnet / NativeFunction

Struct NativeFunction

thunks.go:257–261  ·  view source on GitHub ↗

NativeFunction represents a function implemented in Go.

Source from the content-addressed store, hash-verified

255
256// NativeFunction represents a function implemented in Go.
257type NativeFunction struct {
258 Name string
259 Func func([]interface{}) (interface{}, error)
260 Params ast.Identifiers
261}
262
263// evalCall evaluates a call to a NativeFunction and returns the result.
264func (native *NativeFunction) evalCall(arguments callArguments, i *interpreter) (value, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected