config

package
v0.0.0-...-4bf24a4 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) interface{}

func GetBool

func GetBool(key string) bool

func GetInt

func GetInt(key string) int

func GetString

func GetString(key string) string

func GetStringMap

func GetStringMap(key string) map[string]interface{}

func GetStringMapString

func GetStringMapString(key string) map[string]string

func GetStringSlice

func GetStringSlice(key string) []string

func GetViper

func GetViper() *viper.Viper

func InitConfig

func InitConfig(opts ...OptAction)

func IsSet

func IsSet(key string) bool

func Set

func Set(key string, value interface{})

Types

type OptAction

type OptAction func(*configOption)

func ConfigDirectory

func ConfigDirectory(dir string) OptAction

func ConfigName

func ConfigName(name string) OptAction

Jump to

Keyboard shortcuts

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