glob

package
v2.41.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package glob provides file globbing for use in nfpm.Packager implementations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Glob

func Glob(pattern, dst string, ignoreMatchers bool) (map[string]string, error)

Glob returns a map with source file path as keys and destination as values. First the longest common prefix (lcp) of all globbed files is found. The destination for each globbed file is then dst joined with src with the lcp trimmed off.

Types

type ErrGlobNoMatch

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

ErrGlobNoMatch happens when no files matched the given glob.

func (ErrGlobNoMatch) Error

func (e ErrGlobNoMatch) Error() string

Jump to

Keyboard shortcuts

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