cleaner

package
v0.0.0-...-4ba9116 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TXT string = ".txt"
	LOG string = ".log"
	MD  string = ".md"
)

Variables

This section is empty.

Functions

func NewCleaner

func NewCleaner(osFile string, fileExtension string, daysDiffToClean int) *clean

Constructor of the cleaner

Args

  • OSFile: The root were the cleaner remove the old data.
  • fileExtension: The extension file of the files that will be "cleaned".
  • daysDiffToClean: The numbers of day to remove a file

Return

  • clean: An instace of clean, if the instance is created previously the NewCleaner return the same instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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