builtin

package
v0.3.0-alpha4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportPaths

func ImportPaths() (a []string)

func Register

func Register(importPath string, f PackageFunc)

Register registers a builtin, the value of which will be built on first use. All builtins must be registered before first use of a runtime. This restriction may be eliminated in the future.

Types

type PackageFunc

type PackageFunc func(ctx *adt.OpContext) (*adt.Vertex, error)

func Get

func Get(path string) PackageFunc

Get return the builder for the package with the given path. It will panic if the path does not exist.

Jump to

Keyboard shortcuts

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