Documentation ¶
Overview ¶
Package os implements a subset of the Go "os" package. See https://godoc.org/os for details.
Note that the current implementation is blocking. This limitation should be removed in a future version.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Stdin = &File{0, "/dev/stdin"} Stdout = &File{1, "/dev/stdout"} Stderr = &File{2, "/dev/stderr"} )
Stdin, Stdout, and Stderr are open Files pointing to the standard input, standard output, and standard error file descriptors.
View Source
var (
ErrUnsupported = errors.New("operation not supported")
)
Portable analogs of some common system call errors.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File represents an open file descriptor.
func (*File) Fd ¶
Fd returns the integer Unix file descriptor referencing the open file. The file descriptor is valid only until f.Close is called.
Click to show internal directories.
Click to hide internal directories.