config

package
v3.11.2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cfgentry

type Cfgentry struct {
	Flag        string
	Env         string
	Description string
	Value       string
}

type Config

type Config map[string]Cfgentry

func (Config) Add

func (c Config) Add(ce Cfgentry)

func (Config) Clone

func (c Config) Clone() Config

func (Config) FromEnv

func (c Config) FromEnv() error

func (Config) FromFlags

func (c Config) FromFlags(flags map[string]interface{}) error

func (Config) Get

func (c Config) Get(flag string) string

func (Config) ToEnv

func (c Config) ToEnv() []string

Jump to

Keyboard shortcuts

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