Documentation
¶
Index ¶
- Constants
- Variables
- func WithContext(parent context.Context, val Os) context.Context
- type DirEntry
- type Ent
- type Env
- type File
- type FileInfo
- type FileMode
- type Fs
- type Id
- type LinkError
- type Net
- type Os
- type PathError
- type ProcAttr
- type Process
- type ProcessState
- type Root
- type Signal
- type Stdio
- type Sys
- type SyscallError
Constants ¶
View Source
const ( O_RDONLY = os.O_RDONLY O_WRONLY = os.O_WRONLY O_RDWR = os.O_RDWR O_APPEND = os.O_APPEND O_CREATE = os.O_CREATE O_EXCL = os.O_EXCL O_SYNC = os.O_SYNC O_TRUNC = os.O_TRUNC DevNull = os.DevNull ModeAppend = os.ModeAppend ModeCharDevice = os.ModeCharDevice ModeDevice = os.ModeDevice ModeDir = os.ModeDir ModeExclusive = os.ModeExclusive ModeIrregular = os.ModeIrregular ModeNamedPipe = os.ModeNamedPipe ModePerm = os.ModePerm ModeSetgid = os.ModeSetgid ModeSetuid = os.ModeSetuid ModeSocket = os.ModeSocket ModeSticky = os.ModeSticky ModeSymlink = os.ModeSymlink ModeTemporary = os.ModeTemporary ModeType = os.ModeType )
Variables ¶
View Source
var ( Args = os.Args Stderr = os.Stderr Stdin = os.Stdin Stdout = os.Stdout Chdir = os.Chdir Clearenv = os.Clearenv Environ = os.Environ Executable = os.Executable Exit = os.Exit Expand = os.Expand ExpandEnv = os.ExpandEnv Getenv = os.Getenv Getpagesize = os.Getpagesize Getegid = os.Getegid Geteuid = os.Geteuid Getgid = os.Getgid Getuid = os.Getuid Interrupt = os.Interrupt ErrClosed = os.ErrClosed ErrDeadlineExceeded = os.ErrDeadlineExceeded ErrExist = os.ErrExist ErrInvalid = os.ErrInvalid ErrNoDeadline = os.ErrNoDeadline ErrNotExist = os.ErrNotExist ErrPermission = os.ErrPermission ErrProcessDone = os.ErrProcessDone NewSyscallError = os.NewSyscallError Chmod = os.Chmod Chtimes = os.Chtimes Create = os.Create CreateTemp = os.CreateTemp DirFS = os.DirFS CopyFS = os.CopyFS Open = os.Open OpenFile = os.OpenFile Lchown = os.Lchown Link = os.Link Mkdir = os.Mkdir MkdirAll = os.MkdirAll NewFile = os.NewFile Remove = os.Remove RemoveAll = os.RemoveAll Rename = os.Rename Stat = os.Stat Symlink = os.Symlink Truncate = os.Truncate )
View Source
var System = sys{}
Functions ¶
Types ¶
type Fs ¶ added in v0.7.0
type Fs interface {
CopyFS(dir string, fsys fs.FS) error
DirFS(dir string) fs.FS
Chdir(dir string) error
Chmod(name string, mode FileMode) error
Chown(name string, uid, gid int) error
Chtimes(name string, atime, mtime time.Time) error
Getwd() (string, error)
IsPathSeparator(c uint8) bool
Lchown(name string, uid, gid int) error
Link(oldname, newname string) error
Mkdir(name string, mode FileMode) error
MkdirAll(path string, mode FileMode) error
MkdirTemp(dir, pattern string) (string, error)
Pipe() (r io.Reader, w io.Writer, err error)
ReadDir(name string) ([]DirEntry, error)
ReadFile(name string) ([]byte, error)
Readlink(name string) (string, error)
Remove(name string) error
RemoveAll(path string) error
Rename(oldpath, newpath string) error
SameFile(fi1, fi2 FileInfo) bool
Symlink(oldname, newname string) error
TempDir() string
Truncate(name string, size int64) error
WriteFile(name string, data []byte, perm FileMode) error
}
type Os ¶
func FromContext ¶
type ProcessState ¶
type ProcessState = os.ProcessState
type SyscallError ¶
type SyscallError = os.SyscallError
Click to show internal directories.
Click to hide internal directories.