config

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(p Params) (v *viper.Viper, err error)

NewConfig is a configuration tool's constructor.

Types

type Params

type Params struct {
	File    string
	Type    string
	Prefix  string
	Name    string
	Version string

	AppDefaults func(v *viper.Viper)
}

Params groups the parameters of configuration.

Jump to

Keyboard shortcuts

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