configload

package
v2.0.0-rc1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

TODO: overhaul

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFromEnv

func NewFromEnv() (*fileConfig, error)

Types

type ErrNotFound

type ErrNotFound struct {
	Profile       string
	Key           string
	SourceProfile string
}

func (*ErrNotFound) Error

func (e *ErrNotFound) Error() string

type Profile

type Profile map[string]string

type Profiles

type Profiles map[string]Profile

func FindAndParse

func FindAndParse() (Profiles, error)

func (Profiles) Get

func (p Profiles) Get(profileName string, key string) (value string, err error)

func (Profiles) GetWithDefault

func (p Profiles) GetWithDefault(profileName string, key string, defaultValue string) string

Jump to

Keyboard shortcuts

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