The highest tagged major version is
v2.
package
Version:
v0.14.0
Opens a new window with list of versions in this module.
Published: Feb 21, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
View Source
var DefaultConfig = Config{
Env: "development",
Name: "config",
Type: "yaml",
}
Default viper configuration
Create a Viper configuration instance
Create a Viper configuration instance with modifiers
const (
JSON Type = "json"
YAML Type = "yaml"
TOML Type = "toml"
)
Parses configuration type
Allowed types: json, yaml, toml
If empty string is passed it returns yaml
Source Files
¶
Click to show internal directories.
Click to hide internal directories.