Use log.Fatal

This commit is contained in:
Elnu 2023-07-16 12:27:21 -07:00
parent ed11a84dca
commit 20db5cdaad

View file

@ -2,6 +2,7 @@ package main
import ( import (
"context" "context"
"log"
"net/http" "net/http"
"github.com/a-h/templ" "github.com/a-h/templ"
@ -23,5 +24,5 @@ func main() {
func() templ.Component { return Click(clicks) }, func() templ.Component { return Click(clicks) },
func() { clicks++ }, func() { clicks++ },
)) ))
http.ListenAndServe(":3333", nil) log.Fatal(http.ListenAndServe(":3333", nil))
} }