func MoveFile(source, destination string) (bool, error) {
	src, err := syscall.UTF16PtrFromString(source)
	if err != nil {
		return false, &os.LinkError{"move", source, destination, err}
	}
	dest, err := syscall.UTF16PtrFromString(destination)
	if err != nil {
		return false, &os.LinkError{"move", source, destination, err}
	}

	// see http://msdn.microsoft.com/en-us/library/windows/desktop/aa365240(v=vs.85).aspx
	if err := moveFileEx(src, dest, movefile_write_through); err != nil {
		return false, &os.LinkError{"move", source, destination, err}
	}
	return true, nil

}
// MoveFile atomically moves the source file to the destination, returning
// whether the file was moved successfully. If the destination already exists,
// it returns an error rather than overwrite it.
MoveFile atomically moves the source file to the destination, returning
whether the file was moved successfully. If the destination already exists,
it returns an error rather than overwrite it.
// MoveFile atomically moves the source file to the destination returning // whether the file was moved successfully . If the destination already exists // it returns an error rather than overwrite it .
func MoveFile(source, destination string) (bool, error) {
	src, err := syscall.UTF16PtrFromString(source)
	if err != nil {
		return false, &os.LinkError{"move", source, destination, err}
	}
	dest, err := syscall.UTF16PtrFromString(destination)
	if err != nil {
		return false, &os.LinkError{"move", source, destination, err}
	}
	if err := moveFileEx(src, dest, movefile_write_through); err != nil {
		return false, &os.LinkError{"move", source, destination, err}
	}
	return true, nil
}
func MoveFile ( source , destination string ) ( bool , error ) { src , err := syscall . UTF16PtrFromString ( source ) if err != nil { return false , & os . LinkError { " " , source , destination , err } } dest , err := syscall . UTF16PtrFromString ( destination ) if err != nil { return false , & os . LinkError { " " , source , destination , err } } if err := moveFileEx ( src , dest , movefile_write_through ) ; err != nil { return false , & os . LinkError { " " , source , destination , err } } return true , nil }
MoveFile atomically moves the source file to the destination, returning
whether the file was moved successfully.
MoveFile atomically moves the source file to the destination returning whether the file was moved successfully .
// see http://msdn.microsoft.com/en-us/library/windows/desktop/aa365240(v=vs.85).aspx