profiles

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllNames

func AllNames() []string

func AllNonDefaultNames

func AllNonDefaultNames() []string

func ConfBool

func ConfBool(name string, def ...bool) bool

func ConfInt

func ConfInt(name string, def int) int

func ConfKeyExists

func ConfKeyExists(name string) bool

func ConfKeyExistsIn

func ConfKeyExistsIn(v *viper.Viper, name string) bool

func ConfString

func ConfString(name string, def string) string

func ConfStringFrom

func ConfStringFrom(v *viper.Viper, vd *viper.Viper, name string, def string) string

func ConfStringSlice

func ConfStringSlice(name string, def []string) []string

func ConfStringSliceFrom

func ConfStringSliceFrom(v *viper.Viper, vd *viper.Viper, name string, def []string) []string

func ConfStrings

func ConfStrings(name string) []string

func CopyToAndUse

func CopyToAndUse(name string) error

func Current

func Current() *viper.Viper

func CurrentName

func CurrentName() string

func Default

func Default() *viper.Viper

func Delete

func Delete(name string) error

func DeleteConf

func DeleteConf(name string)

func ReadDefaultConfig

func ReadDefaultConfig(dir string) error

First is error, second is warning

func SetConf

func SetConf(name string, val interface{})

func SetConfIn

func SetConfIn(v *viper.Viper, name string, val interface{})

func Use

func Use(name string) error

func WriteConfigAs

func WriteConfigAs(name string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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