Help us shape the future of Go! Take the 2026 Go Developer Survey

osenv

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package osenv is the real cli.Environment: the process's own env and streams.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Real

type Real struct{}

Real reads from the running process.

func (Real) Getenv

func (Real) Getenv(key string) string

func (Real) Stderr

func (Real) Stderr() io.Writer

func (Real) Stdin

func (Real) Stdin() io.Reader

func (Real) StdinIsTerminal

func (Real) StdinIsTerminal() bool

StdinIsTerminal reports whether a person can type on stdin. It asks the OS whether stdin is a terminal: a character-device check alone would count < /dev/null as one, and a run would then wait for answers no one can type.

func (Real) Stdout

func (Real) Stdout() io.Writer

Jump to

Keyboard shortcuts

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