wasm

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WasmOutputBuffer = &StubBuffer{
	buffer: &bytes.Buffer{},
}

WasmOutputBuffer is a stub for non-WASM builds

Functions

func CaptureOutput

func CaptureOutput(fn func()) string

func GetCapturedOutput

func GetCapturedOutput() string

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 {
	// contains filtered or unexported fields
}

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