generated from ElnuDev/go-project
Use log.Fatal
This commit is contained in:
parent
ed11a84dca
commit
20db5cdaad
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"github.com/a-h/templ"
|
||||
|
@ -23,5 +24,5 @@ func main() {
|
|||
func() templ.Component { return Click(clicks) },
|
||||
func() { clicks++ },
|
||||
))
|
||||
http.ListenAndServe(":3333", nil)
|
||||
log.Fatal(http.ListenAndServe(":3333", nil))
|
||||
}
|
||||
|
|
Reference in a new issue