package
Version:
v0.0.0-...-e3d78ff
Opens a new window with list of versions in this module.
Published: Apr 11, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 6
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 *Server `yaml:"server,omitempty"`
DB *Database `yaml:"database,omitempty"`
}
Config holds data for application configuration
Load returns config from yaml and environment variables.
type Database struct {
Dsn string `yaml:"dsn,omitempty"`
}
Database holds data for database configuration
type Server struct {
Port string `yaml:"port,omitempty"`
}
Server holds data for server configuration
Source Files
¶
Click to show internal directories.
Click to hide internal directories.