copy

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir(src, dst string, setters ...Option) error

Dir copies the `src` directory to the `dst` directory.

func File

func File(src, dst string, setters ...Option) error

File copies the `src` file to the `dst` file.

Types

type Option added in v0.9.0

type Option func(o *Options)

Option represents copy option.

func WithMode added in v0.9.0

func WithMode(m os.FileMode) Option

WithMode sets destination files filemode.

type Options added in v0.9.0

type Options struct {
	Mode os.FileMode
}

Options represents copy options.

Jump to

Keyboard shortcuts

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