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: about 2 months ago
JSON representation

copy files for humans

Lists

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 main

import "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).