config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package config contains tools for working with configs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewViperCfg

func NewViperCfg(params ViperParams) *viper.Viper

NewViperCfg creates instance of viper config.

Types

type ViperParams

type ViperParams struct {
	UseEnv         bool
	UseOverride    bool
	EnvPrefix      string
	OverrideSuffix string
	Path           string
}

ViperParams is a params for viper cfg instance creation.

Jump to

Keyboard shortcuts

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