package builtin
import "cuelang.org/go/internal/builtin"
Index ¶
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 ¶
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.
Source Files ¶
registry.go
- Version
- v0.3.0-alpha2
- Published
- Sep 16, 2020
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 7 minutes ago –
Tools for package owners.