util

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyAll

func CopyAll(src string, dst string) (err error)

CopyAll recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, destination directory must exist. Symlinks are ignored and skipped.

func CopyDir

func CopyDir(src string, dst string) (err error)

CopyDir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, destination directory must *not* exist. Symlinks are ignored and skipped.

func CopyDirFromEmbed added in v0.7.0

func CopyDirFromEmbed(src embed.FS, srcPath string, dstPath string) (err error)

func CopyFile

func CopyFile(src, dst string) (err error)

CopyFile copies the contents of the file named src to the file named by dst. The file will be created if it does not already exist. If the destination file exists, all it's contents will be replaced by the contents of the source file. The file mode will be copied from the source and the copied data is synced/flushed to stable storage.

func CopyFileFromEmbed added in v0.7.0

func CopyFileFromEmbed(src embed.FS, srcPath string, dstPath string) (err error)

func IsAlphaNumeric added in v0.6.3

func IsAlphaNumeric(s string) bool

func Unzip

func Unzip(zipPath string, p string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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