config

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 {
		DialogVersion string `long:"global-dialog-version" required:"true" ini-name:"dialog-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