Skip to content

reflect: add MakeFunc #1765

@bradfitz

Description

@bradfitz
Feature request:

reflect.MakeFunc(Type, func([]Value) []Value)

So one can do:

  var f func(a, b int) string
  embeddedLang.GetFunc("func", &f)
  s := f(1, 2)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions