Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + const DevNull + const ModeAppend + const ModeCharDevice + const ModeDevice + const ModeDir + const ModeExclusive + const ModeIrregular + const ModeNamedPipe + const ModePerm + const ModeSetgid + const ModeSetuid + const ModeSocket + const ModeSticky + const ModeSymlink + const ModeTemporary + const ModeType + const O_APPEND + const O_CREATE + const O_EXCL + const O_RDONLY + const O_RDWR + const O_SYNC + const O_TRUNC + const O_WRONLY + const PathListSeparator + const PathSeparator + const SEEK_CUR + const SEEK_END + const SEEK_SET + var Args []string + var ErrClosed = fs.ErrClosed + var ErrDeadlineExceeded = errDeadlineExceeded() + var ErrExist = fs.ErrExist + var ErrInvalid = fs.ErrInvalid + var ErrNoDeadline = errNoDeadline() + var ErrNotExist = fs.ErrNotExist + var ErrPermission = fs.ErrPermission + var ErrProcessDone = errors.New("os: process already finished") + var Stderr = NewFile(uintptr(syscall.Stderr), "/dev/stderr") + var Stdin = NewFile(uintptr(syscall.Stdin), "/dev/stdin") + var Stdout = NewFile(uintptr(syscall.Stdout), "/dev/stdout") + func Chdir(dir string) error + func Chmod(name string, mode FileMode) error + func Chown(name string, uid, gid int) error + func Chtimes(name string, atime time.Time, mtime time.Time) error + func Clearenv() + func DirFS(dir string) fs.FS + func Environ() []string + func Executable() (string, error) + func Exit(code int) + func Expand(s string, mapping func(string) string) string + func ExpandEnv(s string) string + func Getegid() int + func Getenv(key string) string + func Geteuid() int + func Getgid() int + func Getgroups() ([]int, error) + func Getpagesize() int + func Getpid() int + func Getppid() int + func Getuid() int + func Getwd() (dir string, err error) + func Hostname() (name string, err error) + func IsExist(err error) bool + func IsNotExist(err error) bool + func IsPathSeparator(c uint8) bool + func IsPermission(err error) bool + func IsTimeout(err error) bool + func Lchown(name string, uid, gid int) error + func Link(oldname, newname string) error + func LookupEnv(key string) (string, bool) + func Mkdir(name string, perm FileMode) error + func MkdirAll(path string, perm FileMode) error + func MkdirTemp(dir, pattern string) (string, error) + func NewSyscallError(syscall string, err error) error + func Pipe() (r *File, w *File, err error) + func ReadFile(name string) ([]byte, error) + func Readlink(name string) (string, error) + func Remove(name string) error + func RemoveAll(path string) error + func Rename(oldpath, newpath string) error + func SameFile(fi1, fi2 FileInfo) bool + func Setenv(key, value string) error + func Symlink(oldname, newname string) error + func TempDir() string + func Truncate(name string, size int64) error + func Unsetenv(key string) error + func UserCacheDir() (string, error) + func UserConfigDir() (string, error) + func UserHomeDir() (string, error) + func WriteFile(name string, data []byte, perm FileMode) error + type DirEntry = fs.DirEntry + func ReadDir(name string) ([]DirEntry, error) + type File struct + func Create(name string) (*File, error) + func CreateTemp(dir, pattern string) (*File, error) + func NewFile(fd uintptr, name string) *File + func Open(name string) (*File, error) + func OpenFile(name string, flag int, perm FileMode) (*File, error) + func (f *File) Chdir() error + func (f *File) Chmod(mode FileMode) error + func (f *File) Chown(uid, gid int) error + func (f *File) Close() error + func (f *File) Fd() uintptr + func (f *File) Name() string + func (f *File) Read(b []byte) (n int, err error) + func (f *File) ReadAt(b []byte, off int64) (n int, err error) + func (f *File) ReadDir(n int) ([]DirEntry, error) + func (f *File) ReadFrom(r io.Reader) (n int64, err error) + func (f *File) Readdir(n int) ([]FileInfo, error) + func (f *File) Readdirnames(n int) (names []string, err error) + func (f *File) Seek(offset int64, whence int) (ret int64, err error) + func (f *File) SetDeadline(t time.Time) error + func (f *File) SetReadDeadline(t time.Time) error + func (f *File) SetWriteDeadline(t time.Time) error + func (f *File) Stat() (FileInfo, error) + func (f *File) Sync() error + func (f *File) SyscallConn() (syscall.RawConn, error) + func (f *File) Truncate(size int64) error + func (f *File) Write(b []byte) (n int, err error) + func (f *File) WriteAt(b []byte, off int64) (n int, err error) + func (f *File) WriteString(s string) (n int, err error) + func (file *File) Fd() uintptr + func (file *File) Stat() (FileInfo, error) + type FileInfo = fs.FileInfo + func Lstat(name string) (FileInfo, error) + func Stat(name string) (FileInfo, error) + type FileMode = fs.FileMode + type LinkError struct + Err error + New string + Old string + Op string + func (e *LinkError) Error() string + func (e *LinkError) Unwrap() error + type PathError = fs.PathError + type ProcAttr struct + Dir string + Env []string + Files []*File + Sys *syscall.SysProcAttr + type Process struct + Pid int + func FindProcess(pid int) (*Process, error) + func StartProcess(name string, argv []string, attr *ProcAttr) (*Process, error) + func (p *Process) Kill() error + func (p *Process) Release() error + func (p *Process) Signal(sig Signal) error + func (p *Process) Wait() (*ProcessState, error) + type ProcessState struct + func (p *ProcessState) ExitCode() int + func (p *ProcessState) Exited() bool + func (p *ProcessState) Pid() int + func (p *ProcessState) String() string + func (p *ProcessState) Success() bool + func (p *ProcessState) Sys() any + func (p *ProcessState) SysUsage() any + func (p *ProcessState) SystemTime() time.Duration + func (p *ProcessState) UserTime() time.Duration + type Signal interface + Signal func() + String func() string + var Interrupt Signal = syscall.SIGINT + var Kill Signal = syscall.SIGKILL + type SyscallError struct + Err error + Syscall string + func (e *SyscallError) Error() string + func (e *SyscallError) Timeout() bool + func (e *SyscallError) Unwrap() error