package
0.0.0-20130121074735-1d03baafba06
Repository: https://github.com/icattlecoder/go.git
Documentation: pkg.go.dev
# Functions
Chdir changes the current working directory to the named directory.
Chmod changes the mode of the named file to mode.
Chown changes the numeric uid and gid of the named file.
Chtimes changes the access and modification times of the named file, similar to the Unix utime() or utimes() functions.
Clearenv deletes all environment variables.
Create creates the named file mode 0666 (before umask), truncating it if it already exists.
Environ returns a copy of strings representing the environment, in the form "key=value".
Exit causes the current program to exit with the given status code.
Expand replaces ${var} or $var in the string based on the mapping function.
ExpandEnv replaces ${var} or $var in the string according to the values of the current environment variables.
FindProcess looks for a running process by its pid.
Getegid returns the numeric effective group id of the caller.
Getenv retrieves the value of the environment variable named by the key.
Geteuid returns the numeric effective user id of the caller.
Getgid returns the numeric group id of the caller.
Getgroups returns a list of the numeric ids of groups that the caller belongs to.
Getpagesize returns the underlying system's memory page size.
Getpid returns the process id of the caller.
Getppid returns the process id of the caller's parent.
Getuid returns the numeric user id of the caller.
Getwd returns a rooted path name corresponding to the current directory.
Hostname returns the host name reported by the kernel.
IsExist returns whether the error is known to report that a file or directory already exists.
IsNotExist returns whether the error is known to report that a file or directory does not exist.
IsPathSeparator returns true if c is a directory separator character.
IsPermission returns whether the error is known to report that permission is denied.
Lchown changes the numeric uid and gid of the named file.
Link creates newname as a hard link to the oldname file.
Lstat returns a FileInfo describing the named file.
Mkdir creates a new directory with the specified name and permission bits.
MkdirAll creates a directory named path, along with any necessary parents, and returns nil, or else returns an error.
NewFile returns a new File with the given file descriptor and name.
NewSyscallError returns, as an error, a new SyscallError with the given system call name and error details.
Open opens the named file for reading.
OpenFile is the generalized open call; most users will use Open or Create instead.
Pipe returns a connected pair of Files; reads from r return bytes written to w.
Readlink returns the destination of the named symbolic link.
Remove removes the named file or directory.
RemoveAll removes path and any children it contains.
Rename renames a file.
SameFile reports whether fi1 and fi2 describe the same file.
Setenv sets the value of the environment variable named by the key.
StartProcess starts a new process with the program, arguments and attributes specified by name, argv and attr.
Stat returns a FileInfo describing the named file.
Symlink creates newname as a symbolic link to oldname.
TempDir returns the default directory to use for temporary files.
Truncate changes the size of the named file.
# Constants
DevNull is the name of the operating system's ``null device.'' On Unix-like systems, it is "/dev/null"; on Windows, "NUL".
a: append-only.
c: Unix character device, when ModeDevice is set.
D: device file.
d: is a directory.
l: exclusive use.
p: named pipe (FIFO).
permission bits.
g: setgid.
u: setuid.
S: Unix domain socket.
t: sticky.
L: symbolic link.
T: temporary file (not backed up).
Mask for the type bits.
append data to the file when writing.
create a new file if none exists.
used with O_CREATE, file must not exist.
open the file read-only.
open the file read-write.
open for synchronous I/O.
if possible, truncate file when opened.
open the file write-only.
OS-specific path list separator.
OS-specific path separator.
seek relative to the current offset.
seek relative to the end.
seek relative to the origin of the file.
# Variables
Args hold the command-line arguments, starting with the program name.
Portable analogs of some common system call errors.
Portable analogs of some common system call errors.
Portable analogs of some common system call errors.
Portable analogs of some common system call errors.
The only signal values guaranteed to be present on all systems are Interrupt (send the process an interrupt) and Kill (force the process to exit).
The only signal values guaranteed to be present on all systems are Interrupt (send the process an interrupt) and Kill (force the process to exit).
Stdin, Stdout, and Stderr are open Files pointing to the standard input, standard output, and standard error file descriptors.
Stdin, Stdout, and Stderr are open Files pointing to the standard input, standard output, and standard error file descriptors.
Stdin, Stdout, and Stderr are open Files pointing to the standard input, standard output, and standard error file descriptors.
# Structs
File represents an open file descriptor.
LinkError records an error during a link or symlink or rename system call and the paths that caused it.
PathError records an error and the operation and file path that caused it.
ProcAttr holds the attributes that will be applied to a new process started by StartProcess.
Process stores the information about a process created by StartProcess.
ProcessState stores information about a process, as reported by Wait.
SyscallError records an error from a specific system call.
# Type aliases
A FileMode represents a file's mode and permission bits.