Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 430 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 430 Bytes

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