extract

command
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Overview

Command extract parses Go package source using mvm's goparser and emits bindings for a package's exported const, var, type, and func declarations.

In the default mode it generates a reflect.Value binding map for an import path, ready to pass to (*interp.Interp).ImportPackageValues so interpreted code can `import "<import-path>"` and call into the native package:

go run ./cmd/extract -o bindings.go github.com/you/yourpkg

With -list it prints a raw "<kind> <name>" listing of a directory; with -stdlib it writes an mvm stdlib binding file under ./core or ./ext.

Jump to

Keyboard shortcuts

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