Help us shape the future of Go! Take the 2026 Go Developer Survey

jsmod

package
v0.1.2531 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package jsmod compiles a plugin's JavaScript module for moejs, the JavaScript engine written in Go that magpie runs plugin code in its own process with: gateway middleware (internal/middleware) and agents (internal/agentplug).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(root, file, what string) (*moejs.Module, error)

Compile compiles the module in file and the modules it imports, which are files under root: there is no node_modules here, so a package is bundled into the module. what names the kind of module in an error ("a middleware").

Types

This section is empty.

Jump to

Keyboard shortcuts

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