config

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupConfigSources

func SetupConfigSources(configFile string, notDefault bool) error

SetupConfigSources sets up Viper configuration.

If specific file path is provided but fails when loading it will return an error.

In case of default config location it will not fail if file does not exist, but will in any other case such as parse error.

Config precedence (each item takes precedence over the item below it): . Flags . Env variables . Config file

Environment variables are prefixed with `IKE` and have fully qualified names, for example in case of `develop` command and its `port` flag corresponding environment variable is `IKE_DEVELOP_PORT`.

func SupportedExtensions

func SupportedExtensions() []string

SupportedExtensions returns a slice of all supported config format (as file extensions)

Types

This section is empty.

Jump to

Keyboard shortcuts

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