conf

package
v0.0.0-...-976baef Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConfigPath

func AddConfigPath(in string)

func AutomaticEnv

func AutomaticEnv()

func ConfigFileUsed

func ConfigFileUsed() string

func GetInt

func GetInt(key string) int

func GetString

func GetString(key string) string

func ReadInConfig

func ReadInConfig() error

func SetConfigName

func SetConfigName(in string)

func SetDefault

func SetDefault(key string, value interface{})

Types

type Config

type Config struct {
	*viper.Viper
}

func New

func New() *Config

Jump to

Keyboard shortcuts

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