utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigramSearch

func BigramSearch(keyword string, items []string) []string

BigramSearch performs a bigram search algorithm

func CompareStrings

func CompareStrings(str1, str2 string) float64

compareStrings compares two strings using a bigram-based similarity algorithm

func CopyFile

func CopyFile(src, dst string) error

func CountImageFiles

func CountImageFiles(archiveFilePath string) (int, error)

CountImageFiles counts the number of image files in an archive (zip, cbz, rar, or cbr).

func DownloadImage

func DownloadImage(downloadDir, fileName, fileUrl string) error

func ExtractFirstImage

func ExtractFirstImage(archivePath, outputFolder string) error

func ExtractNumber

func ExtractNumber(name string) (int, error)

func ProcessImage

func ProcessImage(fromPath, toPath string) error

processImage function to handle image processing from file to file

func RemovePatterns

func RemovePatterns(path string) string

func Sluggify

func Sluggify(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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