ioutil

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dirs

func Dirs(pathDir string) ([]os.DirEntry, error)

func FileExists

func FileExists(fullPath string) (bool, error)

func Files

func Files(path string) ([]os.DirEntry, error)

func LastLines

func LastLines(file string, nlines int, skipEmpty bool, noincludecrlf bool) ([]string, error)

func ReadOldestFile

func ReadOldestFile(path, preffix, suffix string) ([]byte, *string, error)

func Touch

func Touch(fullpath string) error

func WriteToRandomFile

func WriteToRandomFile(path, preffix, suffix string, data []byte) (string, error)

Types

type File

type File struct {
	Name  string
	Bytes []byte
}

func ReadOldestFiles

func ReadOldestFiles(path, preffix, suffix string, n int) ([]File, error)

Jump to

Keyboard shortcuts

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