Skip to content

manen/cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cleaner

Cleaner for Go

Installation

go get github.com/manen/cleaner

Usage

package main

import (
  "github.com/manen/cleaner"
)

func main() {
  // Create a new cleaner
  c := cleaner.Cleaner{
    Name: "Example",
    CleanUp: func() {
      // Clean up
    }
  }

  // Add the new cleaner
  cleaner.AddCleaner(c)

  // Run all the cleaners
  cleaner.CleanUp()
}

License

GPL 3