multipath

package
v0.58.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: GPL-3.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound added in v0.23.0

func IsNotFound(err error) bool

IsNotFound returns a boolean indicating whether the error is ErrNotFound or not.

Types

type ErrNotFound added in v0.23.0

type ErrNotFound struct {
	// contains filtered or unexported fields
}

func (ErrNotFound) Error added in v0.23.0

func (e ErrNotFound) Error() string

type MultiPath

type MultiPath []string

MultiPath multi-paths

func New

func New(paths ...string) MultiPath

New multi-paths

func (MultiPath) Find

func (p MultiPath) Find(filename string) (string, error)

Find finds a file in given paths

func (MultiPath) FindFiles added in v0.57.0

func (p MultiPath) FindFiles(suffix string) ([]string, error)

Jump to

Keyboard shortcuts

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