wasm

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WasmOutputBuffer = &StubBuffer{}

WasmOutputBuffer is a stub for non-WASM builds

Functions

func CaptureOutput

func CaptureOutput(fn func()) string

func GetCapturedOutput

func GetCapturedOutput() string

func RegisterOutputStateReset added in v0.5.8

func RegisterOutputStateReset(_ func())

func ResetOutputBuffers

func ResetOutputBuffers()

No-op function stubs for non-WASM environments

func SetupIO

func SetupIO()

func SplitArgs

func SplitArgs(cmdString string) []string

Types

type StubBuffer

type StubBuffer struct{}

StubBuffer provides a no-op implementation for non-WASM builds

func (*StubBuffer) Reset

func (d *StubBuffer) Reset()

func (*StubBuffer) String

func (d *StubBuffer) String() string

func (*StubBuffer) Write

func (d *StubBuffer) Write(p []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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