config

package
v4.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigFile

func CreateConfigFile() error

CreateConfigFile creates a config file in the current directory with default data.

Types

type Cmd

type Cmd struct {
	Terms []string
	// Milliseconds
	DelayToKill int
	FatalIfErr  bool
}

Cmd is a command from a config file.

type Config

type Config struct {
	Cmds          []Cmd
	IgnoreRegExps []*regexp.Regexp
}

Config is the data from a config file.

func GetConfig

func GetConfig(configFilePath string) (*Config, error)

GetConfig returns the data from the config file.

Jump to

Keyboard shortcuts

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