goconf

package module
v0.0.0-...-f3f7b14 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2018 License: ISC Imports: 2 Imported by: 2

README

GoConf

Extremely simplified INI config package.

This package looks for a config file inside pre-defined folders. If the file is not found then it raises an log.Fatal error

Initially the package looks for a development.conf file, if not found it keeps looking for a production.conf file.

The expected format of the config file is ini

The list of paths:

		"conf/development.conf"
		"development.conf"
		"../conf/development.conf"
		"../../conf/development.conf"
		"../../../conf/development.conf"
		"conf/production.conf"
		"production.conf"
		"../conf/production.conf"
		"../../conf/production.conf"
		"../../../conf/production.conf"

How to use it

Install the package: go get github.com/sec51/goconf

Import the package: import "github.com/sec51/goconf"

Use the package via:

	goconf.AppConf.String("app.name")

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppConf config.Configer
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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