refactor: use copier instead copy

main
Tran Hau 2021-01-20 14:44:45 +07:00
parent 76b9ff7fed
commit 4c31f03cf1
1 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import (
"os/user"
"path/filepath"
"github.com/haunt98/copy-go"
copier "github.com/haunt98/copy-go"
)
const (
@ -16,11 +16,11 @@ const (
type copyFn func(from, to string) error
func replaceFile(from, to string) error {
return replace(from, to, copy.CopyFile)
return replace(from, to, copier.CopyFile)
}
func replaceDir(from, to string) error {
return replace(from, to, copy.CopyDir)
return replace(from, to, copier.CopyDir)
}
func replace(from, to string, fn copyFn) error {