importer

package
v2.0.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Importer

type Importer interface {

	// Import a module by name
	Import(ctx context.Context, name string) (*object.Module, error)
}

Importer is an interface used to import Tamarin code modules

type LocalImporter

type LocalImporter struct {
	// contains filtered or unexported fields
}

func NewLocalImporter

func NewLocalImporter(opts LocalImporterOptions) *LocalImporter

func (*LocalImporter) Import

func (i *LocalImporter) Import(ctx context.Context, name string) (*object.Module, error)

type LocalImporterOptions

type LocalImporterOptions struct {
	Builtins   map[string]object.Object
	SourceDir  string
	Extensions []string
}

Jump to

Keyboard shortcuts

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