package
Version:
v0.0.0-...-0e580d0
Opens a new window with list of versions in this module.
Published: Apr 18, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Connect initializes a connnection to the database thanks to a config object
type Config struct {
DbUser string `env:"DB_USER"`
DbPassword string `env:"DB_PASSWORD"`
DbPort int `env:"DB_PORT" envDefault:"5432"`
DbHost string `env:"DB_HOST"`
DbName string `env:"DB_NAME"`
}
Config represents the database configuration
Source Files
¶
Click to show internal directories.
Click to hide internal directories.