gocopy

package
v0.0.0-...-e5d0ea4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SkipIfExists

func SkipIfExists() option

func Verbose

func Verbose() option

Pass this option to constructor to turn on verbose mode

func WithCopier

func WithCopier(copyFunc CopyFunc) option

modify the harsher function to uniquely idendify each file.

func WithWorkers

func WithWorkers(n int) option

Modify number of workers

Types

type CopyFunc

type CopyFunc func(src string, dest string, overwrite bool) error

function for copying a file from src to destination dest.

type GoCopier

type GoCopier struct {
	// contains filtered or unexported fields
}

func New

func New(options ...option) *GoCopier

func (*GoCopier) CopyDir

func (wm *GoCopier) CopyDir(src, dst string) error

Jump to

Keyboard shortcuts

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