filemap

package
v5.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mapping

type Mapping struct {
	Match  string `yaml:"match"`
	Dest   string `yaml:"dest"`
	Regexp bool   `yaml:"regexp"`
	IsDir  bool   `yaml:"is_dir"`
	Skip   bool   `yaml:"skip"`
}

Mapping is a way for DFM to map custom locations to custom locations

func New

func New() Mapping

func (Mapping) Matches

func (m Mapping) Matches(filename string) bool

type Mappings

type Mappings []Mapping

Mappings is a list of Mapping's

func DefaultMappings

func DefaultMappings() Mappings

func (Mappings) Matches

func (m Mappings) Matches(filename string) *Mapping

Jump to

Keyboard shortcuts

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