package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Nov 7, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Server struct {
HTTP struct {
Addr string `mapstructure:"addr"`
}
GRPC struct {
Addr string `mapstructure:"addr"`
}
}
Data struct {
Database struct {
DSN string `mapstructure:"dsn"`
}
}
}
Loader is the config loader
NewLoader creates a new Loader instance.
func (loader *Loader) MustLoad()
MustLoad loads the config from the config file and environment variables
Source Files
¶
Click to show internal directories.
Click to hide internal directories.