world

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package world encapsulates Go program I/O with the outside world.

Index

Constants

This section is empty.

Variables

View Source
var System = system{os.System}

Functions

func WithContext

func WithContext(parent context.Context, w World) context.Context

Types

type Os

type Os interface {
	os.Cmd
	os.Env
	os.Fs
	os.Id
	os.Net
	os.Stdio
	os.Sys
}

func SystemOs

func SystemOs() Os

type World

type World interface {
	Os() Os
}

func FromContext

func FromContext(ctx context.Context) World

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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