Skip to content

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
manen committed Mar 2, 2021
1 parent 752fcc8 commit 71b5bf1
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Cleaner

Cleaner for Go

## Installation

```sh
go get github.com/manen/cleaner
```

## Usage

```go
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](LICENSE.txt)

0 comments on commit 71b5bf1

Please sign in to comment.