directory

package
v0.0.0-...-f2d1b3d Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadDirectory

func ReadDirectory(dirPath string) (fi []fs.DirEntry, dir string, err error)

Reads current directory

Types

type FileNames

type FileNames struct {
	LogMain      string
	LogBackup    string
	LogExtension string
}

LogFileOptions Names params

type FilesPath

type FilesPath struct {
	MainFilePath   string
	BackupFilePath string
}

type LogFileOptions

type LogFileOptions struct {
	FilesPath  FilesPath
	FilesNames FileNames
}

func (*LogFileOptions) CreateLogFile

func (o *LogFileOptions) CreateLogFile() (string, error)

Creates main log file and renames previous if it was present in directory

Jump to

Keyboard shortcuts

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