package
0.12.0
Repository: https://github.com/katanomi/pkg.git
Documentation: pkg.go.dev

# Functions

Copy support copy file to file or dir to dir.
FileFilterOption construct file filter `CopyOption`.
GetIOStreams returns IOStreams stored in the context if any if not found will return nil *IOStreams.
IsDir check if the given path is a dir.
IsExist check if the given path is existed.
IsFile check if the given path is a file.
MustGetIOStreams gets the IOStream from context or initiates a default using os.Stdin, os.Stout, os.Sterr.
WithIOStreams adds IOStreams into the context.
WriteFile write the content to the desired file.

# Structs

Config configuration for copy operation.

# Type aliases

CopyOption function for setting CopyConfig.