Reformat config.go

This commit is contained in:
jacob1123 committed 2022-02-20 20:51:10 +00:00
1 parent 62085cb694
commit 1dcd0d2f6d
1 file changed
+19 -19
+19 -19
View File
@@ -1,19 +1,19 @@
package config
import (
"os"
)
// Config contains all needed configurations
type Config struct {
DatabaseConnection string
}
// LoadConfig from path
func LoadConfig() (*Config, error) {
configuration := Config{
DatabaseConnection: os.Getenv("BUDGETEER_DB"),
}
return &configuration, nil
}
package config
import (
"os"
)
// Config contains all needed configurations
type Config struct {
DatabaseConnection string
}
// LoadConfig from path
func LoadConfig() (*Config, error) {
configuration := Config{
DatabaseConnection: os.Getenv("BUDGETEER_DB"),
}
return &configuration, nil
}