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

process

package
v1.1.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

func New

func New(runtime *bridge.Runtime, filesystem *fs.Module, allowExec bool, startedAt time.Time, hostVersion, hostVersionHash string, reportError func(*goja.Runtime, []goja.Value)) *Module

New constructs the process module. hostVersion and hostVersionHash are reported via process.versions and are the embedding application's own version identity, not part of the JS runtime itself; an empty hostVersion falls back to "unknown".

func (*Module) Load

func (m *Module) Load(vm *goja.Runtime, module *goja.Object)

func (*Module) RunTurn

func (m *Module) RunTurn(vm *goja.Runtime, job func() error) error

Jump to

Keyboard shortcuts

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