Source File
doc.go
Belonging Package
github.com/traefik/yaegi/interp
/*Package interp provides a complete Go interpreter.For the Go language itself, refer to the official Go specificationhttps://golang.org/ref/spec.# Importing packagesPackages can be imported in source or binary form, using the standardGo import statement. In source form, packages are searched first in thevendor directory, the preferred way to store source dependencies. If notfound in vendor, sources modules will be searched in GOPATH. Go modulesare not supported yet by yaegi.Binary form packages are compiled and linked with the interpreterexecutable, and exposed to scripts with the Use method. The extractsubcommand of yaegi can be used to generate package wrappers.# Custom build tagsCustom build tags allow to control which files in imported sourcepackages are interpreted, in the same way as the "-tags" option of the"go build" command. Setting a custom build tag spans globally for allfuture imports of the session.A build tag is a line comment that begins// yaegi:tagsthat lists the build constraints to be satisfied by the furtherimports of source packages.For example the following custom build tag// yaegi:tags noasmWill ensure that an import of a package will exclude files containing// +build !noasmAnd include files containing// +build noasm*/package interp// BUG(marc): Support for recursive types is incomplete.// BUG(marc): Support of types implementing multiple interfaces is incomplete.
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |