copy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MPL-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package copy provides a file copy utility implementation.

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

type Option func(o *Options)

Option represents copy option.

func WithMode

func WithMode(m os.FileMode) Option

WithMode sets destination files filemode.

type Options

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