utils

package
v0.0.0-...-a528e96 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyAndReplaceFile

func CopyAndReplaceFile(srcPath, destPath string) error

func CopyFile

func CopyFile(srcPath, destPath string) error

func CreateDirIfNotExists

func CreateDirIfNotExists(parts ...string) (string, error)

func DownloadFile

func DownloadFile(url, checksum string) (string, error)

func FileChecksum

func FileChecksum(file *os.File, checksumType string) (string, error)

func FileExists

func FileExists(filename string) bool

func FileExistsAndMatchesChecksum

func FileExistsAndMatchesChecksum(filename, checksum string) (bool, error)

func FileMatchesChecksum

func FileMatchesChecksum(filename, checksum string) (bool, error)

func MoveFile

func MoveFile(srcPath, dstPath, checksum string) error

func RemoveDuplicates

func RemoveDuplicates[T comparable](sliceList []T) []T

func SHA1Compare

func SHA1Compare(file1, file2 string) (bool, error)

func SHA1File

func SHA1File(filename string) (string, error)

func UnzipFile

func UnzipFile(source, destination 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