2023-03-19 22:03:12 +01:00
|
|
|
package main
|
|
|
|
|
2023-04-19 05:30:52 +02:00
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"golang.org/x/exp/slog"
|
|
|
|
)
|
2023-03-19 22:03:12 +01:00
|
|
|
|
|
|
|
func main() {
|
|
|
|
err := run()
|
|
|
|
if err != nil {
|
2023-04-19 05:30:52 +02:00
|
|
|
l := slog.New(slog.NewJSONHandler(os.Stderr))
|
|
|
|
// log.Fatalln(err)
|
|
|
|
l.Error("error running app:", err)
|
|
|
|
os.Exit(1)
|
2023-03-19 22:03:12 +01:00
|
|
|
}
|
|
|
|
}
|