viperconfig

package
v1.14.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ViperizeFlags

func ViperizeFlags(requiredConfig, optionalConfig string) error

ViperizeFlags checks whether a configuration file was specified, reads it, and updates the configuration variables accordingly. Must be called after framework.HandleFlags() and before framework.AfterReadingAllFlags().

The logic is so that a required configuration file must be present. If empty, the optional configuration file is used instead, unless also empty.

Files can be specified with just a base name ("e2e", matches "e2e.json/yaml/..." in the current directory) or with path and suffix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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