Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hugocarreira/go-decent-copy
copy files for humans
https://github.com/hugocarreira/go-decent-copy
copy files go golang
Last synced: 10 days ago
JSON representation
copy files for humans
- Host: GitHub
- URL: https://github.com/hugocarreira/go-decent-copy
- Owner: hugocarreira
- License: mit
- Created: 2018-10-16T07:08:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-03T16:44:55.000Z (almost 5 years ago)
- Last Synced: 2024-07-31T20:51:27.272Z (3 months ago)
- Topics: copy, files, go, golang
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 22
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - go-decent-copy - Copy files for humans. (File Handling / Search and Analytic Databases)
- awesome-go - go-decent-copy - copy files for humans - ★ 6 (Files)
- awesome-go-extra - go-decent-copy - 10-16T07:08:24Z|2020-01-03T16:44:55Z| (File Handling / Advanced Console UIs)
README
[![GoDoc](https://godoc.org/github.com/hugocarreira/go-decent-copy?status.svg)](https://godoc.org/github.com/hugocarreira/go-decent-copy) [![Build Status](https://travis-ci.org/hugocarreira/go-decent-copy.svg?branch=master)](https://travis-ci.org/hugocarreira/go-decent-copy) [![Go Report Card](https://goreportcard.com/badge/github.com/hugocarreira/go-decent-copy)](https://goreportcard.com/report/github.com/hugocarreira/go-decent-copy) [![codecov](https://codecov.io/gh/hugocarreira/go-decent-copy/branch/master/graph/badge.svg)](https://codecov.io/gh/hugocarreira/go-decent-copy)
# Go-Decent-Copy
go-decent-copy provides a copy file for humans
## Usage
```go
package mainimport "github.com/hugocarreira/go-decent-copy"
func main() {
execPath, _ := os.Getwd()fileOrigin := fmt.Sprintf(execPath + "/testCopy.txt")
fileDestiny := fmt.Sprintf(execPath + "/testCopied.txt")
err := Copy(fileOrigin, fileDestiny)
if err != nil {
t.Fatalf("Error in copy file : %#v ", err.Error())
}
}
```## License
This project is licensed under the [MIT License](LICENSE).