copy

package
v0.12.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 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