modules

package
v0.1.46 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

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

Resolver resolves ES module specifiers from a virtual filesystem or HTTP URLs.

func NewResolver

func NewResolver(fsys fs.FS) *Resolver

NewResolver creates a resolver backed by the given filesystem. Local specifiers are read from fs, URLs starting with http:// or https:// are fetched.

func (*Resolver) Resolve

func (r *Resolver) Resolve(_ interface{}, specifier string) (sobek.ModuleRecord, error)

Resolve implements the sobek module resolve callback.

Jump to

Keyboard shortcuts

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