config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MatchNamers FirstMatcher
}

func GetConfig

func GetConfig(content string, debug bool) (*Config, error)

GetConfig extracts Config from content by parsing it as YAML.

func ReadFile

func ReadFile(cfgpath string, debug bool) (*Config, error)

ReadRecipesFile opens the named file and extracts recipes from it.

type FirstMatcher

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

func (FirstMatcher) MatchAndName

func (f FirstMatcher) MatchAndName(nacl common.ProcAttributes) (bool, string)

func (FirstMatcher) String added in v0.3.7

func (f FirstMatcher) String() string

type Matcher

type Matcher interface {
	// Match returns empty string for no match, or the group name on success.
	Match(common.ProcAttributes) bool
}

Jump to

Keyboard shortcuts

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