auto

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Func

func Func(name string, f interface{}) wdte.Func

Func returns a wdte.Func that wraps the given function f. The returned function automatically translates any supported types to and from the appropriate types for both arguments and return values. The given name is used to name the frame used inside the function.

Note that currently this is limited to functions that have a single return value, and not all types are supported. Currently supported types are as follows:

Arguments:

  • Any number type, including uintptrs.
  • Arrays and slices of supported types. Note that the passed WDTE array's length must match the expected length of the array in the Go function's arguments.
  • Booleans.
  • Strings.

Return types:

  • Any number type, including uintptrs.
  • Arrays and slices of supported types.
  • Booleans.
  • Strings.
  • Pointers to supported types.
  • Functions that are supported by this function. The functions will use a frame with the name "<auto>".

Types

This section is empty.

Jump to

Keyboard shortcuts

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