config

package
v0.0.0-...-3e44fac Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2014 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSystemConfigPath = "etc/job.conf"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SystemPath string
	First      string `toml:"conf_first" env:"CONF_FIRST"`
}

func New

func New() *Config

func (*Config) Load

func (c *Config) Load(arguments []string) error

func (*Config) LoadEnv

func (c *Config) LoadEnv() error

LoadEnv loads the configuration via environment variables.

func (*Config) LoadFile

func (c *Config) LoadFile(path string) error

Loads configuration from a file.

func (*Config) LoadFlags

func (c *Config) LoadFlags(arguments []string) error

Jump to

Keyboard shortcuts

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