configuration

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 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 Config

type Config struct {
	Paths        *ConfigPaths
	SettingsList map[string]interface{}
}

func Init

func Init(paths *ConfigPaths) (*Config, error)

func (*Config) LookupOption

func (config *Config) LookupOption(name string) (interface{}, bool)

func (*Config) LookupOptionString

func (config *Config) LookupOptionString(name string) (string, bool)

type ConfigPaths

type ConfigPaths struct {
	ConfigFilePath   string
	ConfigFileEmails string
}

func GetDefaultPath

func GetDefaultPath() (*ConfigPaths, error)

Jump to

Keyboard shortcuts

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