nixin-backend/main.go

15 lines
261 B
Go
Raw Permalink Normal View History

2024-10-03 11:11:40 +00:00
package main
import (
"fmt"
"github.com/a-h/templ"
2024-10-03 11:36:31 +00:00
"net/http"
2024-10-03 11:11:40 +00:00
)
func main() {
http.Handle("/", templ.Handler(root()))
http.Handle("/noheader", templ.Handler(hello("12b et mrflos")))
fmt.Println("Listening on :3000")
http.ListenAndServe(":3000", nil)
}