lib

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorMessage = []string{
	"error",
	"fd error",
}
View Source
var PageRangeRegex = regexp.MustCompile(`(?m)#\d*(?:-\d*)?(?:,\s*\d*(?:-\d*)?)*`)

Functions

func CheckCommand

func CheckCommand(name string) error

func FdExecute

func FdExecute(cfg FdConfig) []string

func IsFdError

func IsFdError(line string) bool

func IsPageRangeValid

func IsPageRangeValid(s string) bool

func ParseRangeNumber

func ParseRangeNumber(input string, maxNumPage int) (*[]Range, error)

func RandomImageFilename

func RandomImageFilename(length int) string

Types

type FdConfig

type FdConfig struct {
	Source          string
	Arg             string
	Type            string
	Extension       string
	Exclude         string
	MaxDepth        string
	MaxQueryResults int
}

type Range

type Range struct {
	Start int
	End   int
}

type Ranges

type Ranges []Range

func (Ranges) IsInRange

func (r Ranges) IsInRange(val int) bool

Jump to

Keyboard shortcuts

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