glob

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 6 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(glob, dst string) (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 added in v1.3.0

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

ErrGlobNoMatch happens when no files matched the given glob.

func (ErrGlobNoMatch) Error added in v1.3.0

func (e ErrGlobNoMatch) Error() string

Jump to

Keyboard shortcuts

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