fix linter error

This commit is contained in:
Aleksandr Sergin 2019-08-23 19:03:43 +03:00 committed by Mike Farah
parent a9e871ee00
commit 2f70e6f27a

7
yq.go
View File

@ -37,11 +37,8 @@ func main() {
}
}
/*
GoLang: os.Rename() give error "invalid cross-device link" for Docker container with Volumes.
MoveFile(source, destination) will work moving file between folders
*/
//MoveFile - os.Rename() give error "invalid cross-device link" for Docker container with Volumes.
//MoveFile(source, destination) will work moving file between folders
func MoveFile(sourcePath, destPath string) error {
inputFile, err := os.Open(sourcePath)
if err != nil {