settings

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = module.Module{
	{Constructor: New},
}

Module of config things

Functions

func New added in v0.5.0

func New(app *App) (*viper.Viper, error)

Init settings

Types

type App added in v0.5.0

type App struct {
	File         string
	Type         string
	Name         string
	BuildTime    string
	BuildVersion string
}

func (*App) Provider added in v0.5.0

func (a *App) Provider() *module.Provider

Provider - wrap app config to provider

func (App) SafeType added in v0.5.0

func (a App) SafeType() string

SafeConfigType returns config type, default config type: yml returns yml if config type not supported

Jump to

Keyboard shortcuts

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