go-decent-copy provides a copy file for humans
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())
}
}
This project is licensed under the MIT License.