https://github.com/hugocarreira/go-decent-copy
copy files for humans
https://github.com/hugocarreira/go-decent-copy
copy files go golang
Last synced: 29 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-03T16:44:55.000Z (over 5 years ago)
- Last Synced: 2025-01-26T08:26:38.199Z (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
[](https://godoc.org/github.com/hugocarreira/go-decent-copy) [](https://travis-ci.org/hugocarreira/go-decent-copy) [](https://goreportcard.com/report/github.com/hugocarreira/go-decent-copy) [](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).