world

package
v0.16.5 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 IO) context.Context

Types

type File added in v0.16.5

type File = os.File

type IO added in v0.16.4

type IO interface {
	Os() Os
}

func FromContext

func FromContext(ctx context.Context) IO

type Os

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

func SystemOs

func SystemOs() Os

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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