config

package module
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase64Values added in v1.0.1

func DecodeBase64Values(values []string, results []*[]byte) error

DecodeBase64Values will decode list of base64 encoded values to list of decoded []byte

func Parse

func Parse(cfgStruct interface{}) error

Parse parses configuration file provided in --config flag cfgStruct should be a pointer

Types

type BaseConfig

type BaseConfig struct {
	Config func(s string) error `long:"config" description:"The ini config file" no-ini:"true"`
	Global struct {
		Version string `long:"global-version" required:"true" ini-name:"version"`
	} `group:"global"`
}

BaseConfig should be embed into your configuration struct

Jump to

Keyboard shortcuts

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