file

package
v3.11.52 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(dst io.Writer, src io.Reader) int64

func CreateTemp

func CreateTemp(dir, pattern string) *os.File

func FileExists added in v3.11.40

func FileExists(pathname string) bool

func IsDir added in v3.11.40

func IsDir(dir string) bool

func MkdirAll added in v3.11.39

func MkdirAll(dir string, perm os.FileMode)

func MkdirTemp

func MkdirTemp(dir, pattern string) string

func Mv

func Mv(from, to string)

func Open

func Open(path string) *os.File

func OpenFile

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

func ReadDir added in v3.11.40

func ReadDir(pathname string) []fs.DirEntry

func ReadFile added in v3.11.39

func ReadFile(path string) []byte

func Remove added in v3.11.40

func Remove(name string)

func RemoveAll

func RemoveAll(dir string)

func Write added in v3.11.39

func Write(f *os.File, content []byte) int

func WriteFile added in v3.11.39

func WriteFile(path string, content []byte, perm os.FileMode)

Types

This section is empty.

Jump to

Keyboard shortcuts

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