config

package
v0.0.0-...-0c1b9ed Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

Functions

func LoadConfig

func LoadConfig()

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