Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simongarisch/goarchive
Basic file archiving with golang
https://github.com/simongarisch/goarchive
Last synced: 13 days ago
JSON representation
Basic file archiving with golang
- Host: GitHub
- URL: https://github.com/simongarisch/goarchive
- Owner: simongarisch
- License: mit
- Created: 2020-02-22T02:27:28.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-22T21:36:36.000Z (almost 5 years ago)
- Last Synced: 2024-06-20T12:45:33.653Z (7 months ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.com/simongarisch/goarchive.svg?branch=master)](https://travis-ci.com/simongarisch/goarchive)
# goarchive
## Installation
```bash
go get github.com/simongarisch/goarchive
```## Usage
```go
package mainimport (
"strings""github.com/simongarisch/goarchive"
)func archiveCsv(filePath string) bool {
if strings.HasSuffix(filePath, ".csv") {
return true
}
return false
}func main() {
archive := goarchive.Archive{
SourceFolderPath: "test_folder",
ArchiveFolderName: "archive",
FileFilterFunc: archiveCsv,
}archive.Run()
}
```