config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func MergeGlobalDefaults

func MergeGlobalDefaults(m map[string]interface{})

func Viper

func Viper() *viper.Viper

Types

type Config

type Config struct {
	BeforeLoad func(v *viper.Viper)
	// contains filtered or unexported fields
}

func (*Config) AppDebug

func (c *Config) AppDebug() bool

AppDebug return bool value

func (*Config) AppName

func (c *Config) AppName() string

AppName ......

func (*Config) DBDebug

func (c *Config) DBDebug() bool

func (*Config) GetConfigFile

func (c *Config) GetConfigFile() string

GetConfigFile ......

func (*Config) Load

func (c *Config) Load()

func (*Config) SetConfigFile

func (c *Config) SetConfigFile(f string)

SetConfigFile ......

func (*Config) SetValue

func (c *Config) SetValue(k string, val interface{})

SetValue ...

func (*Config) SetViper

func (c *Config) SetViper(v *viper.Viper)

func (*Config) V

func (c *Config) V() *viper.Viper

func (*Config) Write2tempCall

func (c *Config) Write2tempCall(fn func(v *viper.Viper))

Jump to

Keyboard shortcuts

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