configure

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 2 Imported by: 0

README

configure

Dead simple configuration library.

Install

go get -u github.com/m-porter/configure

Usage

See examples in the examples directory.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config() interface{}

func Setup

func Setup(options Options, conf interface{}) error

Types

type Options

type Options struct {
	ConfigName    string
	ConfigType    string
	ConfigAbsPath string
	EnvPrefix     string
	Defaults      interface{}
}

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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