config

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const File = ".spaghetti-cutter.hjson"

File is the name of the configuration file

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AllowOnlyIn       *data.PatternMap
	AllowAdditionally *data.PatternMap
	Tool              data.PatternList
	DB                data.PatternList
	God               data.PatternList
	Size              uint
	NoGod             bool
}

Config contains the parsed configuration.

func Parse

func Parse(cfgBytes []byte, cfgFile string) (Config, error)

Parse parses the configuration bytes and uses cfgFile only for better error messages.

Jump to

Keyboard shortcuts

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