file

package
v0.0.0-...-1ce297e Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	READOYLY  = 0644
	READWRITE = 0755
)

Variables

This section is empty.

Functions

func AbsPath

func AbsPath() string

func Append

func Append(path string, content []byte) error

func AppendText

func AppendText(path string, content string) error

func CopyTo

func CopyTo(src string, dst string) error

func DirExists

func DirExists(path string) bool

func Exists

func Exists(path string) bool

func IsDir

func IsDir(path string) bool

func IsEmpty

func IsEmpty(path string) bool

func Mkdir

func Mkdir(path string) error

func Read

func Read(path string) ([]byte, error)

func ReadDir

func ReadDir(path string) ([]os.FileInfo, error)

func ReadLines

func ReadLines(path string, offset int, limit int) (string, error)

func ReadText

func ReadText(path string) (string, error)

func Remove

func Remove(path string) error

func RemoveAll

func RemoveAll(path string) error

func Write

func Write(path string, content []byte) error

func WriteText

func WriteText(path string, content string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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