os

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package os provides bindings for Go's os package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(vm *goja.Runtime)

Register injects the os functions into the runtime

Types

type Module

type Module struct {
	Root string
}

Module implements the go:os package bindings.

func (*Module) ReadFile

func (m *Module) ReadFile(vm *goja.Runtime) func(goja.FunctionCall) goja.Value

ReadFile maps to os.ReadFile

func (*Module) WriteFile

func (m *Module) WriteFile(vm *goja.Runtime) func(goja.FunctionCall) goja.Value

WriteFile maps to os.WriteFile

Jump to

Keyboard shortcuts

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