file

package
v1.3.22 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete added in v1.3.8

func Delete(filename string) error

Delete ...

func Exists

func Exists(filename string) bool

Exists ...

func Find

func Find(filepath string) (string, bool)

Find recursively searches for a valid file path in a file tree

func GetLines

func GetLines(filename string) (lines []string, err error)

GetLines ...

func Truncate added in v1.3.8

func Truncate(filename string, perm os.FileMode) error

Truncate erases the content of a file without remove the file itself

Types

This section is empty.

Jump to

Keyboard shortcuts

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