Documentation ¶ Index ¶ type Config func LoadConfig(path string) (*Config, error) type DatabaseSection Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { RootDir string `json:"rootDir"` Database DatabaseSection `json:"database"` } func LoadConfig ¶ func LoadConfig(path string) (*Config, error) LoadConfig : Loads the config type DatabaseSection ¶ type DatabaseSection struct { Server string `json:"server"` Database string `json:"database"` Port int `json:"port"` User string `json:"user"` Password string `json:"password"` } Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.