cputils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyAll

func CopyAll(tasks ...CopyTask) error

func OnlySpecificExtention

func OnlySpecificExtention(ext string) func(srcinfo os.FileInfo, src, dest string) (bool, error)

Types

type CopyTask

type CopyTask struct {
	Source string
	Dest   string
	Perm   fs.FileMode
	Skip   func(srcinfo os.FileInfo, src, dest string) (bool, error) // Skipするファイルならtrueを返す
}

func (*CopyTask) Copy

func (c *CopyTask) Copy() error

Jump to

Keyboard shortcuts

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