Reformat config.go
This commit is contained in:
parent
62085cb694
commit
1dcd0d2f6d
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user