Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface {
// Env get config from env.
Env(envName string, defaultValue ...any) any
// Add config to application.
Add(name string, configuration any)
// Get config from application.
Get(path string, defaultValue ...any) any
// GetString get string type config from application.
GetString(path string, defaultValue ...string) string
// GetInt get int type config from application.
GetInt(path string, defaultValue ...int) int
// GetBool get bool type config from application.
GetBool(path string, defaultValue ...bool) bool
// GetDuration get duration type config from application
GetDuration(path string, defaultValue ...time.Duration) time.Duration
}
Click to show internal directories.
Click to hide internal directories.