os

package
v0.0.0-...-375d9ab Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

This file has automatically been generated on Wed Feb 26 15:50:46 +05 2020. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chdir

func Chdir(dir string) error

func Chmod

func Chmod(name string, mode os.FileMode) error

func Chown

func Chown(name string, uid, gid int) error

func Chtimes

func Chtimes(name string, atime time.Time, mtime time.Time) error

func Create

func Create(name string) (*os.File, error)

func Environ

func Environ() []string

func Executable

func Executable() (string, error)

func Expand

func Expand(s string, mapping func(string) string) string

func ExpandEnv

func ExpandEnv(s string) string

func FileChdir

func FileChdir(f *os.File) error

func FileChmod

func FileChmod(f *os.File, mode os.FileMode) error

func FileChown

func FileChown(f *os.File, uid, gid int) error

func FileClose

func FileClose(f *os.File) error

func FileFd

func FileFd(f *os.File) uintptr

func FileModeIsDir

func FileModeIsDir(m os.FileMode) bool

func FileModeIsRegular

func FileModeIsRegular(m os.FileMode) bool

func FileModePerm

func FileModePerm(m os.FileMode) os.FileMode

func FileModeString

func FileModeString(m os.FileMode) string

func FileName

func FileName(f *os.File) string

func FileRead

func FileRead(f *os.File, b []byte) (int, error)

func FileReadAt

func FileReadAt(f *os.File, b []byte, off int64) (int, error)

func FileReaddir

func FileReaddir(f *os.File, n int) ([]os.FileInfo, error)

func FileReaddirnames

func FileReaddirnames(f *os.File, n int) ([]string, error)

func FileSeek

func FileSeek(f *os.File, offset int64, whence int) (int64, error)

func FileSetDeadline

func FileSetDeadline(f *os.File, t time.Time) error

func FileSetReadDeadline

func FileSetReadDeadline(f *os.File, t time.Time) error

func FileSetWriteDeadline

func FileSetWriteDeadline(f *os.File, t time.Time) error

func FileStat

func FileStat(f *os.File) (os.FileInfo, error)

func FileSync

func FileSync(f *os.File) error

func FileSyscallConn

func FileSyscallConn(f *os.File) (syscall.RawConn, error)

func FileTruncate

func FileTruncate(f *os.File, size int64) error

func FileWrite

func FileWrite(f *os.File, b []byte) (int, error)

func FileWriteAt

func FileWriteAt(f *os.File, b []byte, off int64) (int, error)

func FileWriteString

func FileWriteString(f *os.File, s string) (int, error)

func FindProcess

func FindProcess(pid int) (*os.Process, error)

func Getegid

func Getegid() int

func Getenv

func Getenv(key string) string

func Geteuid

func Geteuid() int

func Getgid

func Getgid() int

func Getgroups

func Getgroups() ([]int, error)

func Getpagesize

func Getpagesize() int

func Getpid

func Getpid() int

func Getppid

func Getppid() int

func Getuid

func Getuid() int

func Getwd

func Getwd() (string, error)

func Hostname

func Hostname() (string, error)

func IsExist

func IsExist(err error) bool

func IsNotExist

func IsNotExist(err error) bool

func IsPathSeparator

func IsPathSeparator(c uint8) bool

func IsPermission

func IsPermission(err error) bool

func IsTimeout

func IsTimeout(err error) bool

func Lchown

func Lchown(name string, uid, gid int) error
func Link(oldname, newname string) error

func LinkErrorError

func LinkErrorError(e *os.LinkError) string

func LinkErrorUnwrap

func LinkErrorUnwrap(e *os.LinkError) error

func LookupEnv

func LookupEnv(key string) (string, bool)

func Lstat

func Lstat(name string) (os.FileInfo, error)

func Mkdir

func Mkdir(name string, perm os.FileMode) error

func MkdirAll

func MkdirAll(path string, perm os.FileMode) error

func NewFile

func NewFile(fd uintptr, name string) *os.File

func NewSyscallError

func NewSyscallError(syscall string, err error) error

func Open

func Open(name string) (*os.File, error)

func OpenFile

func OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)

func PathErrorError

func PathErrorError(e *os.PathError) string

func PathErrorTimeout

func PathErrorTimeout(e *os.PathError) bool

func PathErrorUnwrap

func PathErrorUnwrap(e *os.PathError) error

func Pipe

func Pipe() (*os.File, *os.File, error)

func ProcessKill

func ProcessKill(p *os.Process) error

func ProcessRelease

func ProcessRelease(p *os.Process) error

func ProcessSignal

func ProcessSignal(p *os.Process, sig os.Signal) error

func ProcessStateExitCode

func ProcessStateExitCode(p *os.ProcessState) int

func ProcessStateExited

func ProcessStateExited(p *os.ProcessState) bool

func ProcessStatePid

func ProcessStatePid(p *os.ProcessState) int

func ProcessStateString

func ProcessStateString(p *os.ProcessState) string

func ProcessStateSuccess

func ProcessStateSuccess(p *os.ProcessState) bool

func ProcessStateSys

func ProcessStateSys(p *os.ProcessState) interface{}

func ProcessStateSysUsage

func ProcessStateSysUsage(p *os.ProcessState) interface{}

func ProcessStateSystemTime

func ProcessStateSystemTime(p *os.ProcessState) time.Duration

func ProcessStateUserTime

func ProcessStateUserTime(p *os.ProcessState) time.Duration

func ProcessWait

func ProcessWait(p *os.Process) (*os.ProcessState, error)
func Readlink(name string) (string, error)

func Remove

func Remove(name string) error

func RemoveAll

func RemoveAll(path string) error

func Rename

func Rename(oldpath, newpath string) error

func SameFile

func SameFile(fi1, fi2 os.FileInfo) bool

func Setenv

func Setenv(key, value string) error

func StartProcess

func StartProcess(name string, argv []string, attr *os.ProcAttr) (*os.Process, error)

func Stat

func Stat(name string) (os.FileInfo, error)
func Symlink(oldname, newname string) error

func SyscallErrorError

func SyscallErrorError(e *os.SyscallError) string

func SyscallErrorTimeout

func SyscallErrorTimeout(e *os.SyscallError) bool

func SyscallErrorUnwrap

func SyscallErrorUnwrap(e *os.SyscallError) error

func TempDir

func TempDir() string

func Truncate

func Truncate(name string, size int64) error

func Unsetenv

func Unsetenv(key string) error

func UserCacheDir

func UserCacheDir() (string, error)

func UserConfigDir

func UserConfigDir() (string, error)

func UserHomeDir

func UserHomeDir() (string, error)

Types

This section is empty.

Directories

Path Synopsis
This file has automatically been generated on Wed Feb 26 15:50:47 +05 2020.
This file has automatically been generated on Wed Feb 26 15:50:47 +05 2020.
This file has automatically been generated on Wed Feb 26 15:50:47 +05 2020.
This file has automatically been generated on Wed Feb 26 15:50:47 +05 2020.
This file has automatically been generated on Wed Feb 26 15:50:47 +05 2020.
This file has automatically been generated on Wed Feb 26 15:50:47 +05 2020.

Jump to

Keyboard shortcuts

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