config

package
v0.0.0-...-dec19c8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ViperEC

type ViperEC struct {
	*viper.Viper
	// contains filtered or unexported fields
}

ViperEC is a Viper Error Catcher. It provides casting error checks in addition to usual viper functionality.

func NewViperEC

func NewViperEC() *ViperEC

func (*ViperEC) Errors

func (vec *ViperEC) Errors() map[string]error

func (*ViperEC) GetBool

func (vec *ViperEC) GetBool(key string) bool

func (*ViperEC) GetBoolNoError

func (vec *ViperEC) GetBoolNoError(key string) bool

func (*ViperEC) GetDuration

func (vec *ViperEC) GetDuration(key string) time.Duration

func (*ViperEC) GetString

func (vec *ViperEC) GetString(key string) string

func (*ViperEC) GetURIPrefix

func (vec *ViperEC) GetURIPrefix(key string) string

func (*ViperEC) GetURL

func (vec *ViperEC) GetURL(key string) string

func (*ViperEC) HasErrors

func (vec *ViperEC) HasErrors() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳