2020-07-20 18:02:54 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2020-07-20 19:42:18 +02:00
|
|
|
"github.com/getsentry/sentry-go"
|
2020-07-20 20:31:18 +02:00
|
|
|
"joethei.xyz/weather/config"
|
|
|
|
"joethei.xyz/weather/server"
|
2020-07-20 18:02:54 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2020-07-20 19:42:18 +02:00
|
|
|
conf := config.LoadConfiguration()
|
|
|
|
if conf.SentryDsn != "" {
|
|
|
|
if err := sentry.Init(sentry.ClientOptions{
|
|
|
|
Dsn: conf.SentryDsn,
|
|
|
|
}); err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-20 18:02:54 +02:00
|
|
|
server.StartServer()
|
|
|
|
}
|