group_helper/main.go

23 lines
406 B
Go
Raw Normal View History

2020-04-11 18:39:54 +00:00
package main
import (
"git.dragon-labs.de/alphyron/group_helper/config"
"log"
)
2020-04-11 18:39:54 +00:00
func main() {
err := config.DatabaseConfig{}.LoadConfig()
if err != nil {
log.Println("Problem while loading database environment variables")
log.Fatal(err)
}
2020-04-11 21:01:14 +00:00
err = config.TelegramConfig{}.LoadConfig()
if err != nil {
log.Println("Problem while loading telegram environment variables")
log.Fatal(err)
}
2020-04-11 18:39:54 +00:00
}