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.
Click to show internal directories.
Click to hide internal directories.