viper

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Viper

type Viper struct {
	SettingsName string
}

Viper is a wrapper around viper that implements the Settings interface.

func (Viper) Get

func (v Viper) Get(key string) any

func (Viper) GetBool

func (v Viper) GetBool(key string) bool

func (Viper) GetFloat

func (v Viper) GetFloat(key string) float64

func (Viper) GetInt

func (v Viper) GetInt(key string) int

func (Viper) GetKeys

func (v Viper) GetKeys() []string

func (Viper) GetString

func (v Viper) GetString(key string) string

func (Viper) GetStrings

func (v Viper) GetStrings(key string) []string

func (Viper) LoadSettings

func (v Viper) LoadSettings() error

func (Viper) SaveSettings

func (v Viper) SaveSettings() error

func (Viper) Set

func (v Viper) Set(key string, value any)

func (Viper) SetDefault

func (v Viper) SetDefault(key string, value any)

Jump to

Keyboard shortcuts

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