decentcopy

package module
v0.0.0-...-9e3645d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2019 License: MIT Imports: 2 Imported by: 0

README

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.

Documentation

Overview

Package decentcopy copy files in simple form

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(filepathOrigin, filepathDestiny string) error

Copy use to copy files

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL