baseconf

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package baseconf is the loader driver for the conf package, that loads configuration data from YAML and JSON files. baseconf searches configuration files in directories specified by GOCONF_PATH environment variable. In GOCONF_PATH you can specify one or more directories separated by ":" symbol.

GOCONF_PATH=/home/username/etc/go:/etc/go

If no directories specified in GOCONF_PATH, then baseconf searches configuration files in the current directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDriver

func NewDriver() conf.Driver

NewDriver method creates new configuration loader driver

Types

type BaseDriver

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

BaseDriver type represents configuration base driver instance

func (*BaseDriver) Load

func (d *BaseDriver) Load(sec string) (map[string]interface{}, error)

Load method loads configuration sections form YAML and JSON files

Jump to

Keyboard shortcuts

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