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) (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

        Source Files