package
module
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Jun 9, 2019
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
kesslercfg
A package I use in my go projects for handling Config values.
Documentation
¶
type Config struct {
Database struct {
User string `json:"user"`
Host string `json:"host"`
Port string `json:"port"`
DBName string `json:"dbname"`
Password string `json:"password"`
} `json:"database"`
}
Config holds configuration values
LoadConfig takes a file and returns a config
Source Files
¶
Click to show internal directories.
Click to hide internal directories.