Documentation ¶
Index ¶
- func Chdir(dir string) result.ResultVoid
- func Chmod(name string, mode os.FileMode) result.ResultVoid
- func Chown(name string, uid, gid int) result.ResultVoid
- func Chtimes(name string, atime time.Time, mtime time.Time) result.ResultVoid
- func Create(fname string) result.Result[*os.File]
- func Executable() result.Result[string]
- func Getgroups() result.Result[[]int]
- func Getwd() result.Result[string]
- func Hostname() result.Result[string]
- func Lchown(name string, uid, gid int) result.ResultVoid
- func Link(oldname, newname string) result.ResultVoid
- func LookupEnv(key string) option.Option[string]
- func Mkdir(name string, perm os.FileMode) result.ResultVoid
- func MkdirAll(path string, perm os.FileMode) result.ResultVoid
- func MkdirTemp(dir, pattern string) result.Result[string]
- func Open(fname string) result.Result[*os.File]
- func OpenFile(fname string, flag int, perm fs.FileMode) result.Result[*os.File]
- func ReadFile(name string) result.Result[[]byte]
- func Readlink(name string) result.Result[string]
- func Remove(name string) result.ResultVoid
- func RemoveAll(path string) result.ResultVoid
- func Rename(oldpath, newpath string) result.ResultVoid
- func Setenv(key, value string) result.ResultVoid
- func Symlink(oldname, newname string) result.ResultVoid
- func Truncate(name string, size int64) result.ResultVoid
- func Unsetenv(key string) result.ResultVoid
- func UserCacheDir() result.Result[string]
- func UserConfigDir() result.Result[string]
- func UserHomeDir() result.Result[string]
- func WriteFile(name string, data []byte, perm os.FileMode) result.ResultVoid
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chdir ¶
func Chdir(dir string) result.ResultVoid
func Executable ¶
func Link ¶
func Link(oldname, newname string) result.ResultVoid
func Remove ¶
func Remove(name string) result.ResultVoid
func RemoveAll ¶
func RemoveAll(path string) result.ResultVoid
func Rename ¶
func Rename(oldpath, newpath string) result.ResultVoid
func Setenv ¶
func Setenv(key, value string) result.ResultVoid
func Symlink ¶
func Symlink(oldname, newname string) result.ResultVoid
func Unsetenv ¶
func Unsetenv(key string) result.ResultVoid
func UserCacheDir ¶
func UserConfigDir ¶
func UserHomeDir ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.