Skip to content
copy files for humans
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes Initial commit Oct 16, 2018
.gitignore 🙈 Add testCopied.txt in gitignore Oct 18, 2018
.travis.yml
LICENSE 📄 Adding MIT LICENSE Oct 16, 2018
README.md 📖 Alter example in readme Oct 18, 2018
decent_copy.go 🐛 Correct error return Oct 18, 2018
decent_copy_test.go 🐛 Alter name for copy file in test Oct 18, 2018
testCopy.txt Initial commit Oct 16, 2018

README.md

GoDoc Build Status Go Report Card codecov

Go-Decent-Copy

go-decent-copy provides a copy file for humans

Usage

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.

You can’t perform that action at this time.