18 lines
228 B
Go
18 lines
228 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"golang.org/x/exp/slog"
|
|
)
|
|
|
|
func main() {
|
|
err := run()
|
|
if err != nil {
|
|
l := slog.New(slog.NewJSONHandler(os.Stderr))
|
|
// log.Fatalln(err)
|
|
l.Error("error running app:", err)
|
|
os.Exit(1)
|
|
}
|
|
}
|